On Tue, Aug 8, 2017 at 10:36 PM, Richard Biener
<richard.guent...@gmail.com> wrote:
> On August 9, 2017 12:18:41 AM GMT+02:00, "H.J. Lu" <hongjiu...@intel.com> 
> wrote:
>>This patch adds -static-pie to GCC driver to create static PIE.  A
>>position independent executable (PIE) is similar to static executable,
>>but can be loaded at any address without a dynamic linker.  All linker
>>input files must be compiled with -fpie or -fPIE and linker must
>>--no-dynamic-linker to avoid linking with dynamic linker.  "-z text" is
>>also needed to prevent dynamic relocations in read-only segments.
>>OK for trunk?
> What's wrong with -static -pie?

-static -pie behaved differently depending on if --enable-default-pie
was used:


I just checked in a patch to make -static always  override -pie.


Reply via email to