Subject: bug#37311: closed (Re: bug#20215: 25.0.50; Support compilation as PIE)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 05 Sep 2019 22:01:02 +0000

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 [email-masked].

-- 
20215: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20215
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#20215: 25.0.50; Support compilation as PIE
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Thu, 05 Sep 2019 18:00:26 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: #BUG ABOUT EMACS# not support compilation as PIE
From: kangenbo <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Thu, 5 Sep 2019 11:43:49 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

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