[PATCH] New option --enable-pie-programs

H.J. Lu hjl.tools@gmail.com
Thu Nov 18 16:56:11 GMT 2021


On Thu, Nov 18, 2021 at 8:49 AM Siddhesh Poyarekar <siddhesh@gotplt.org> wrote:
>
> On 11/18/21 22:14, H.J. Lu wrote:
> > --enable-pie means --disable-pie which looks odd since PIE isn't really
> > disabled, just isn't the default.   But I don't feel it very strongly.   As for
>
> Ahh then the option you suggested is actually different, in that
> --enable-default-pie=no doesn't actually disable PIE for default-PIE
> toolchains.  That is, it is similar to the --enable-pie-programs option
> I implemented with the added functionality of transparently enabling
> static-pie.  Have I understood that correctly?
>

I am not sure.  --enable-default-pie and --disable-default-pie should
be independent of compilers, except for static PIE.  If compiler supports
static PIE, --enable-default-pie implies --enable-static-pie.

-- 
H.J.


More information about the Libc-alpha mailing list