From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Subsystem initialization functions in normal binary Date: Tue, 13 Jan 2015 09:34:08 +0100 Message-ID: References: <54B3A91C.5060404@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421138076 28168 80.91.229.3 (13 Jan 2015 08:34:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 08:34:36 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 13 09:34:30 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAwvl-0008A7-BS for ged-emacs-devel@m.gmane.org; Tue, 13 Jan 2015 09:34:29 +0100 Original-Received: from localhost ([::1]:37846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAwvk-0003wj-Qg for ged-emacs-devel@m.gmane.org; Tue, 13 Jan 2015 03:34:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAwvW-0003wa-8e for emacs-devel@gnu.org; Tue, 13 Jan 2015 03:34:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAwvR-0001r0-9V for emacs-devel@gnu.org; Tue, 13 Jan 2015 03:34:14 -0500 Original-Received: from cantor2.suse.de ([195.135.220.15]:52385 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAwvR-0001qh-3U for emacs-devel@gnu.org; Tue, 13 Jan 2015 03:34:09 -0500 Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5A85FABFC; Tue, 13 Jan 2015 08:34:08 +0000 (UTC) X-Yow: It's hard being an ARTIST!! In-Reply-To: <54B3A91C.5060404@yandex.ru> (Dmitry Antipov's message of "Mon, 12 Jan 2015 13:59:40 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181207 Archived-At: Dmitry Antipov writes: > @@ -456,6 +460,7 @@ ifeq ($(CANNOT_DUMP),yes) > else > LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump > $(PAXCTL_if_present) -zex $@ > + $(STRIP_if_present) -R .once $@ Is it portable enough to strip a loadable section from an executable? That necessarily leaves a hole in the text segment since it cannot relocate the other sections, so it won't really have much effect on the address space layout anyway, but can easily damage the binary. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."