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