https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- The root cause is: $ LANG= gcc hw.c -Whardened -fhardened -O2 -pie cc: warning: linker hardening options not enabled by '-fhardened' because other link options were specified on the command line Hmm why should -pie (not -no-pie) suppress -fhardened?