On Hardened we add some options like -z now --- a/gcc/gcc.cc +++ b/gcc/gcc.cc @@ -1001,6 +1001,12 @@ proper position among the other output files. */ #endif #endif +#ifdef EXTRA_OPTIONS +#define LINK_NOW_SPEC "%{!nonow:-z now} " +#else +#define LINK_NOW_SPEC "" +#endif + #ifdef ENABLE_DEFAULT_PIE #define PIE_SPEC "!no-pie" #define NO_FPIE1_SPEC "fno-pie" @@ -1161,7 +1167,7 @@ proper position among the other output files. */ %(linker) " \ LINK_PLUGIN_SPEC \ "%{flto|flto=*:%