From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: pdumping "into" the executable Date: Mon, 26 Feb 2018 14:10:27 -0700 Message-ID: <87d10rpid8.fsf@tromey.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519679334 5552 195.159.176.226 (26 Feb 2018 21:08:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 21:08:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 22:08:50 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 1eqQ0v-0001AE-IN for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 22:08:49 +0100 Original-Received: from localhost ([::1]:33267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqQ2y-0008Iy-06 for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 16:10:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqQ2n-0008Hv-Jg for emacs-devel@gnu.org; Mon, 26 Feb 2018 16:10:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqQ2j-00042A-K8 for emacs-devel@gnu.org; Mon, 26 Feb 2018 16:10:45 -0500 Original-Received: from gateway21.websitewelcome.com ([192.185.45.31]:22896) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eqQ2j-0003r4-Ak for emacs-devel@gnu.org; Mon, 26 Feb 2018 16:10:41 -0500 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway21.websitewelcome.com (Postfix) with ESMTP id E056C400CBE79 for ; Mon, 26 Feb 2018 15:10:28 -0600 (CST) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id qQ2Wew2aEcGlpqQ2WerDvt; Mon, 26 Feb 2018 15:10:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IWPQ2LHkiqoMztICvWpJAUD7ZXiVrfpMKWRDDDB66DU=; b=h1jwwpoANBbyRV6OJO9NmwVEv2 1JTidla+6jkX2SJd8mMbm4VNDGyZfuu0f7luMRYg9QOnprLdkzP3jrV251sLRJnDX3H5o2Csgb9mJ dsq2gt7MhFCLOp98eOPOtse7Q; Original-Received: from 174-29-60-18.hlrn.qwest.net ([174.29.60.18]:41230 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eqQ2W-0036u1-I0; Mon, 26 Feb 2018 15:10:28 -0600 X-Attribution: Tom In-Reply-To: (Daniel Colascione's message of "Mon, 26 Feb 2018 09:00:34 -0800") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.29.60.18 X-Source-L: No X-Exim-ID: 1eqQ2W-0036u1-I0 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-29-60-18.hlrn.qwest.net (pokyo) [174.29.60.18]:41230 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.45.31 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:223090 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. Tom