From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Sampson Newsgroups: gmane.emacs.bugs Subject: bug#18780: 24.4; configure script should disable PIE on all platforms Date: Mon, 20 Oct 2014 23:41:37 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413845302 22020 80.91.229.3 (20 Oct 2014 22:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2014 22:48:22 +0000 (UTC) To: 18780@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 00:48:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XgLkO-0002Te-4F for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 00:48:16 +0200 Original-Received: from localhost ([::1]:47207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLkN-0006Pb-Ii for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2014 18:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLkF-0006PU-E6 for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:48:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgLkA-0004iB-Ee for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:48:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLkA-0004i6-At for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XgLkA-00028X-1l for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Sampson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Oct 2014 22:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14138452278143 (code B ref -1); Mon, 20 Oct 2014 22:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Oct 2014 22:47:07 +0000 Original-Received: from localhost ([127.0.0.1]:57565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgLjG-00027H-E9 for submit@debbugs.gnu.org; Mon, 20 Oct 2014 18:47:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41394) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgLjB-00026l-Pb for submit@debbugs.gnu.org; Mon, 20 Oct 2014 18:47:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgLj1-0003xD-2E for submit@debbugs.gnu.org; Mon, 20 Oct 2014 18:46:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLj0-0003x8-Uy for submit@debbugs.gnu.org; Mon, 20 Oct 2014 18:46:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLiw-0006Mw-Ao for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:46:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgLir-0003wE-QD for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:46:46 -0400 Original-Received: from a.painless.aa.net.uk ([81.187.30.51]:48473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLir-0003wA-I3 for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 18:46:41 -0400 Original-Received: from cartman.offog.org ([2001:8b0:83b:b53f::a]) by a.painless.aa.net.uk with esmtp (Exim 4.77) (envelope-from ) id 1XgLip-0003A1-7D for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 23:46:39 +0100 Original-Received: from ats by cartman.offog.org with local (Exim 4.84) (envelope-from ) id 1XgLdx-0008IG-Gv; Mon, 20 Oct 2014 23:41:37 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94848 Dear Emacs maintainers, In the configure script for Emacs 24.4, position-independent executable support is currently explicitly disabled for temacs on Darwin and OpenBSD by adding options (-fno-pie, -nopie) to LD_SWITCH_SYSTEM_TEMACS. However, it's possible to have GCC configured to use PIE by default on other platforms -- for example, Debian, Ubuntu and Gentoo provide "hardened" GCC configurations. If you try to build Emacs with a PIE-ified GCC, temacs will segfault; you need to explicitly pass the no-pie options to configure. I ran into this on my GARstow system, but here's an example of a Gentoo user being tripped up by the same thing: https://bugs.gentoo.org/494316 Would it be possible for the configure script to add the -fno-pie/-nopie options by default to LD_SWITCH_SYSTEM_TEMACS, if they're accepted by the toolchain? That way you could build Emacs with a PIE-ified GCC without special treatment, and you wouldn't need the special cases for Darwin and OpenBSD. Thanks, Adam In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.25) of 2014-10-20 on gar-amd64 Windowing system distributor `The X.Org Foundation', version 11.0.11600000 Configured using: `configure --prefix=/gar --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/com --with-x-toolkit=gtk2 --without-gconf --with-gameuser=_garstow_no_such_user CFLAGS= CPPFLAGS= LDFLAGS=' Important settings: value of $LC_COLLATE: C value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: C-x 1 M-x r e p o r t - e m Recent messages: Loading tex-mode...done Loading sendmail...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /home/ats/.Emacs/snake hides /gar/share/emacs/24.4/lisp/play/snake /gar/share/emacs/site-lisp/timeclock hides /gar/share/emacs/24.4/lisp/calendar/timeclock Features: (shadow sort gnus-util mail-extr emacsbug message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader org-install warnings server sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cus-edit easymenu wid-edit cl-loaddefs cl-lib tex-mode compile shell pcomplete comint ansi-color ring cus-start cus-load time time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 103533 26209) (symbols 48 20482 1) (miscs 40 35 126) (strings 32 17390 21949) (string-bytes 1 497465) (vectors 16 11430) (vector-slots 8 404627 21346) (floats 8 74 57) (intervals 56 185 50) (buffers 960 13) (heap 1024 14884 3581)) -- Adam Sampson