From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23529: Request for fixing randomize_va_space build issues Date: Wed, 07 Sep 2016 17:21:58 +0300 Message-ID: <83r38vaiyh.fsf@gnu.org> References: <573C2601.3030308@cs.ucla.edu> <54b89449-083a-a906-986a-f284dbbf482a@cs.ucla.edu> <02c57124-ef39-bc30-89ba-998986d070fc@cs.ucla.edu> <834m5tapuu.fsf@gnu.org> <83twdsalbk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1473258205 16003 195.159.176.226 (7 Sep 2016 14:23:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2016 14:23:25 +0000 (UTC) Cc: p.stephani2@gmail.com, philippe.vaucher@gmail.com, 23529@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 07 16:23:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bhdkw-00039Q-Mb for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2016 16:23:14 +0200 Original-Received: from localhost ([::1]:41303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhdku-0005Ea-IX for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2016 10:23:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhdko-0005AO-In for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 10:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhdkk-0000Rg-AB for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 10:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhdkk-0000Rc-6Y for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 10:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bhdkk-0006hq-2k for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 10:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2016 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23529 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23529-submit@debbugs.gnu.org id=B23529.147325814625720 (code B ref 23529); Wed, 07 Sep 2016 14:23:02 +0000 Original-Received: (at 23529) by debbugs.gnu.org; 7 Sep 2016 14:22:26 +0000 Original-Received: from localhost ([127.0.0.1]:52762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhdk9-0006gl-T6 for submit@debbugs.gnu.org; Wed, 07 Sep 2016 10:22:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhdk5-0006gR-Tl for 23529@debbugs.gnu.org; Wed, 07 Sep 2016 10:22:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhdjx-0000KY-6y for 23529@debbugs.gnu.org; Wed, 07 Sep 2016 10:22:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhdjx-0000KU-3H; Wed, 07 Sep 2016 10:22:13 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1744 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bhdjv-0006H2-50; Wed, 07 Sep 2016 10:22:11 -0400 In-reply-to: (message from Paul Eggert on Tue, 6 Sep 2016 13:37:20 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123053 Archived-At: > Cc: p.stephani2@gmail.com, philippe.vaucher@gmail.com, 23529@debbugs.gnu.org > From: Paul Eggert > Date: Tue, 6 Sep 2016 13:37:20 -0700 > > On 09/06/2016 12:18 PM, Eli Zaretskii wrote: > > Then users on those platforms will never be able to re-dump. > > True. But they'll still be better off than they are now, since they > can't dump at all now. Plus, for extra credit we could dynamically link > the dumped object modules at Emacs startup, with the idea of making it > practical to re-dump. That would be good, thanks. I still think we should consider approaches that don't require a compiler. > The compiler-based approach should be simpler and more portable than > messing with low-level binary I/O. You mean, 'read' and 'write'? That's hardly problematic, and is available on all supported platforms. Even 'mmap' is reasonably portable. > Another example: on hardened platforms with PIEs > (position-independent executables), you get a PIE for free as the > dumped executable, instead of having to disable PIE as we do now. I'm not sure how PIE is relevant: the stuff we dump, and need to load into a running Emacs, is data, not code. What am I missing?