From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Cesar Quiroz Newsgroups: gmane.emacs.bugs Subject: bug#24682: 26.0.50; Bootstrap failed Date: Fri, 14 Oct 2016 23:39:12 -0700 Message-ID: References: <87pon48sz1.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1146f5d8006362053ee19b54 X-Trace: blaine.gmane.org 1476513648 27679 195.159.176.226 (15 Oct 2016 06:40:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2016 06:40:48 +0000 (UTC) To: 24682@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 15 08:40:37 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 1bvIdi-00030X-Ug for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Oct 2016 08:40:15 +0200 Original-Received: from localhost ([::1]:50671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvIdh-0004v2-GM for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Oct 2016 02:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvIdb-0004sX-HY for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 02:40:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvIdW-0006KE-Gj for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 02:40:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvIdW-0006KA-CX for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 02:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bvIdW-0002oe-5n for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 02:40:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87pon48sz1.fsf@gmx.de> Resent-From: Cesar Quiroz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Oct 2016 06:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24682 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24682-submit@debbugs.gnu.org id=B24682.147651358010785 (code B ref 24682); Sat, 15 Oct 2016 06:40:02 +0000 Original-Received: (at 24682) by debbugs.gnu.org; 15 Oct 2016 06:39:40 +0000 Original-Received: from localhost ([127.0.0.1]:57878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvId9-0002ns-RK for submit@debbugs.gnu.org; Sat, 15 Oct 2016 02:39:40 -0400 Original-Received: from mail-it0-f47.google.com ([209.85.214.47]:38385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvId8-0002na-KR for 24682@debbugs.gnu.org; Sat, 15 Oct 2016 02:39:38 -0400 Original-Received: by mail-it0-f47.google.com with SMTP id o19so9414216ito.1 for <24682@debbugs.gnu.org>; Fri, 14 Oct 2016 23:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=duLS8UUfG8LwmppNZ7VElylNymVSqJvpCvOwYEXTeGE=; b=XQnQmUt7nVPQkLwHC1s2yTuvu+4nrKPJeYCLouyNuDD0xDwfMmiqFWCY6tq29fphXQ sxNuE/R2Um+73QbklPPNfInzM7QMUKNNLY33M4+f6Blk2FoILxOQULLJ3eLXHdGS7NyG wIlXhMe1FtnrCOLZ1/6jVRDzUdJqLMUQuigT9jh3u5fMutURKuus2HDF96p4re/oZVtW fBpFgwEYb+occAQfEZ6XOIWHCNpqEhcvYlmQJ0Qf0oszT6ut0R0KtTN7q1z6xAYC/B4j yENGYUx7aO644BKribjKu2JemMIPHtm1XScvGyFfFjs0FQsC0hcm9o+aJ3UcHBkFXxE1 XJvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=duLS8UUfG8LwmppNZ7VElylNymVSqJvpCvOwYEXTeGE=; b=SLxQYslGNhdpr5EIbQXxLsAgLANy6BcH9XjVt3DjcT6l8Zx9cj3UrnunVSlZqKJYz+ iUGZqR1nGG65fN0i0BAeu7qqQCPpPrq0TIxemAASqVZR9mHM3hclmIJMgNLyzbJgmAhC 4SfWEWlKFtlosQoW1gaK3k4x8/ZNtS7FWLPQISfqIONbHKxgvzOCFVv4BiiVfcU2OTWN I0I6ETqtCnpKb3EI7i2NhtW13aBjcb3gGHN9Fi20DdXLym/w8BylAE2bZJY19tGqa0uR KUVbpEuCFVf9pS4lOX9tldWODnkCEYxfhB0xoxugxOustF0vOPPq2LSV1OARcOhsbkVJ TKuA== X-Gm-Message-State: AA6/9RnfvyStoSCqGofPY7GPBzFXzGdbwsC+DUqGFaTt+1jlwML3MKIejoaUIo/V6yZHGbAd6IxdzemXke8nfQ== X-Received: by 10.36.109.3 with SMTP id m3mr786780itc.20.1476513572609; Fri, 14 Oct 2016 23:39:32 -0700 (PDT) Original-Received: by 10.79.1.149 with HTTP; Fri, 14 Oct 2016 23:39:12 -0700 (PDT) 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:124491 Archived-At: --001a1146f5d8006362053ee19b54 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 16.10 has modified gcc to compile with -pie by default. That just must get in the way of unexec. Search "gcc" in https://wiki.ubuntu.com/YakketyYak/ReleaseNotes, I have tried this successfully (both emacs-25 and master): 1. in the git workdir: $ ./autogen.sh 2. in the build directory: $ ...../configure CFLAGS=3D-no-pie and the binaries built fine. On topic, it would be nice if there was a string in the binary that told one how the $(config.status --config), so one could (more) easily rebuild a binary. Something like a function (emacs-configure-options). This has worked with ASLR on (echo 2 > /proc/sys/kernel/randomize_va_space) and with ASLR off (echo 0 > /proc/sys/kernel/randomize_va_space). --C=C3=A9sar --001a1146f5d8006362053ee19b54 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
16.10 has modified gcc to compile with -pie by defaul= t.=C2=A0 That just must get in the way of unexec.

=

I have tried this successfully (both emacs-25 and maste= r):

1. in the git workdir:

$ ./autogen.sh

2. in the build directory:
<= div>
$ ...../configure CFLAGS=3D-no-pie <other configure o= ptions>

and the binaries built fine.
=
On topic, it would be nice if there was a string in the bina= ry that told one how the $(config.status --config), so one could (more) eas= ily rebuild a binary.=C2=A0 Something like a function (emacs-configure-opti= ons).

This has worked with ASLR on (echo 2 > /p= roc/sys/kernel/randomize_va_space)=C2=A0
and with ASLR off (echo = 0 > /proc/sys/kernel/randomize_va_space).

--C=C3=A9sar
--001a1146f5d8006362053ee19b54--