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