From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: dancol@dancol.org Newsgroups: gmane.emacs.devel Subject: Re: pdumping "into" the executable Date: Mon, 26 Feb 2018 13:18:15 -0800 Message-ID: <40f9317e9ee2220ba612cc117d6174c2.squirrel@dancol.org> References: <87d10rpid8.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1519679788 26292 195.159.176.226 (26 Feb 2018 21:16:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 21:16:28 +0000 (UTC) User-Agent: SquirrelMail/1.4.23 [SVN] Cc: Daniel Colascione , Stefan Monnier , emacs-devel@gnu.org To: "Tom Tromey" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 22:16:24 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqQ8F-0006Ww-R3 for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 22:16:24 +0100 Original-Received: from localhost ([::1]:33304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqQAI-0003CU-31 for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 16:18:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqQAA-0003CD-G2 for emacs-devel@gnu.org; Mon, 26 Feb 2018 16:18:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqQA9-0008EA-KB for emacs-devel@gnu.org; Mon, 26 Feb 2018 16:18:22 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:35206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqQA9-0008DT-BN for emacs-devel@gnu.org; Mon, 26 Feb 2018 16:18:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To:Message-ID; bh=Dfrdy/RIpMozbfV7xbtkXLgo/uBTBpf0OTJ7U7hQtIc=; b=aOHcKIy8/+8LtUBWXhs4UXIzSW1MxxmO0AsGzRZK49Az7VUCiSBykMgYqsz9aGp/6B02Tf0vabF+70jEd8bKJlFNoa+gMzjW0bYeWF5+gxTI52qP26ZYgvf76ajXJsoj5CrVBHEjHQaFjcYZhVI10B7rt4N3FjLO350OhQzfStl30Rm2gawFHmGLhBgfjCC06iYa/96Q5kE3RULsRyJzfAJer8svNylATFGxXw6JRR/BrouVwoLo705k0pjC510vtMj0+LdFHRe7s+f42dwJU2c3jRfuGBM38SkjmPYLXI93/Rxb41MELYZI8twZ5ddkPtPcvbR+x7a9Ne7P9Zcr/w==; Original-Received: from localhost ([127.0.0.1] helo=dancol.org) by dancol.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqQA3-0002FH-QO; Mon, 26 Feb 2018 13:18:15 -0800 Original-Received: from 127.0.0.1 (SquirrelMail authenticated user dancol) by dancol.org with HTTP; Mon, 26 Feb 2018 13:18:15 -0800 In-Reply-To: <87d10rpid8.fsf@tromey.com> X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:223091 Archived-At: >>>>>> "Daniel" == Daniel Colascione writes: > > Daniel> I don't think strip-robustness is all that important, and I'd > Daniel> hope we could re-sign binaries as needed. > > Distros usually build everything with debuginfo and then strip off the > debuginfo. So, building this way would require special build hacks for > the distros. > > Maybe instead you could use objcopy to stuff the data into some section > in the executable. Or, just turn the dump to a C file, then compile it > and do a second link. Aside from (maybe hypothetical) C compiler > limits, that would be very portable. But not redumpable. Besides, the problem with a second link is that it might change the relative positions of symbols within Emacs, leading to havoc when Emacs then tries to load the dump. It doesn't feel like a good idea to depend on object layout being stable across different links.