GNU bug report logs - #20215
25.0.50; Support compilation as PIE

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Fri, 27 Mar 2015 21:44:02 UTC

Severity: wishlist

Merged with 37311

Found in versions 24.4, 25.0.50

Fixed in version 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: kangenbo <kangenbo <at> huawei.com>
Subject: bug#37311: closed (Re: bug#20215: 25.0.50; Support compilation as
 PIE)
Date: Thu, 05 Sep 2019 22:01:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#20215: #BUG ABOUT EMACS# not support compilation as PIE

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 37311 <at> debbugs.gnu.org.

-- 
20215: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20215
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 20215-done <at> debbugs.gnu.org
Subject: Re: bug#20215: 25.0.50; Support compilation as PIE
Date: Thu, 05 Sep 2019 18:00:26 -0400
Version: 27.1

>> ... it should be replaced by a portable dumper.

And lo, it was.

Compiling with -fPIE seems to work with the portable dumper that will be
the default for Emacs 27.1 onwards.

[Message part 3 (message/rfc822, inline)]
From: kangenbo <kangenbo <at> huawei.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: #BUG ABOUT EMACS# not support compilation as PIE
Date: Thu, 5 Sep 2019 11:43:49 +0000
[Message part 4 (text/plain, inline)]
Emacs  24.3 (gnu/linux, x86_64)

Question1: Why emacs do not have fPIE(Position Independent Executable)?

Question2: I try to compile as a positon-independent executable, modify src/Makefile  with adding CFLAGS=-fPIE  LDFLAGS=-pie
                   Then I make and get Emacs segfaults when dumping.
[cid:image001.png <at> 01D56421.53405100]

someone has the same problem in bug-gnu-emacs , but no one reply.  https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-03/msg01061.html

Regards,
Patrick

[Message part 5 (text/html, inline)]
[image001.png (image/png, inline)]

This bug report was last modified 5 years and 310 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.