[PATCH] New option --enable-pie-programs
Siddhesh Poyarekar
siddhesh@gotplt.org
Thu Nov 18 16:36:51 GMT 2021
On 11/18/21 19:11, H.J. Lu wrote:
>> HJ, could you describe how you'd expect it to behave? Would it map to
>> any of the options I describe above?
>
> --enable-default-pie builds all dynamic programs, including tests, as PIE. If
> compiler/target supports static PIE, it also builds static programs as PIE.
OK I guess there's close to consensus on a single flag that enables
dynamic PIE and if supported by the target, transparently enable
static-pie as well. So next question: is it OK to enable by default and
require users to specify --enable-pie=no to disable PIE?
Also, would you be OK with calling it --enable-pie HJ? Or do you feel
strongly about calling it --enable-default-pie? Same question for
Adhemerval; I am OK with calling it --enable-cake fwiw ;)
Thanks,
Siddhesh
More information about the Libc-alpha
mailing list