From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23529: Request for fixing randomize_va_space build issues Date: Wed, 7 Sep 2016 10:40:14 -0700 Organization: UCLA Computer Science Department Message-ID: 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> <83r38vaiyh.fsf@gnu.org> <83eg4vab5o.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473270096 17606 195.159.176.226 (7 Sep 2016 17:41:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2016 17:41:36 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 Cc: p.stephani2@gmail.com, philippe.vaucher@gmail.com, 23529@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 07 19:41:32 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 1bhgqf-00032a-1j for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2016 19:41:21 +0200 Original-Received: from localhost ([::1]:42250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgqc-0002wo-58 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2016 13:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgqS-0002su-5d for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 13:41:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhgqN-0007Xk-5b for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 13:41:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgqN-0007XV-2K for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 13:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bhgqM-0006EX-Uf for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2016 13:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2016 17:41: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.147327002323879 (code B ref 23529); Wed, 07 Sep 2016 17:41:02 +0000 Original-Received: (at 23529) by debbugs.gnu.org; 7 Sep 2016 17:40:23 +0000 Original-Received: from localhost ([127.0.0.1]:52861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhgpj-0006D5-9F for submit@debbugs.gnu.org; Wed, 07 Sep 2016 13:40:23 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhgph-0006Cp-8X for 23529@debbugs.gnu.org; Wed, 07 Sep 2016 13:40:21 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6D163160195; Wed, 7 Sep 2016 10:40:15 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id EHNeilhLq97G; Wed, 7 Sep 2016 10:40:14 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B6A6516111A; Wed, 7 Sep 2016 10:40:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ekmFlHvRZY8j; Wed, 7 Sep 2016 10:40:14 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 947C4160195; Wed, 7 Sep 2016 10:40:14 -0700 (PDT) In-Reply-To: <83eg4vab5o.fsf@gnu.org> 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:123066 Archived-At: Eli Zaretskii wrote: >> PIE can relocate data as well as code. > Since we will be reading data into existing variables, that would > happen automatically. I'm afraid I'm not following. Any existing variables (i.e., existing in E= macs=20 when it starts up) are of fixed size, so they can't hold all the data of = a=20 dumped Emacs. The newly starting-up Emacs must decide how much storage to= =20 allocate to hold the dumped state that Emacs is about to read. This stor= age's=20 addresses should be randomized, and the data that Emacs reads will contai= n=20 pointers-to-data that Emacs itself would need to relocate. All this is doable, of course. It's just that it should be easier and mor= e=20 portable to use the existing compilers and linkers rather than reinvent t= he wheel. >> > And with modules, we also have code to dump. > ??? What do you mean by that? Modules cannot be preloaded, AFAIK. You're right, saving objects as C source code doesn't fix that problem al= l by=20 itself.