On Hardened we add some options like -z now --- a/gcc/gcc.c 2016-02-19 23:18:38.000000000 +0100 +++ b/gcc/gcc.c 2016-05-02 22:56:10.185721270 +0200 @@ -868,6 +868,12 @@ proper position among the other output f #endif #endif +#ifdef EXTRA_OPTIONS +#define LINK_NOW_SPEC "%{!nonow:-z now} " +#else +#define LINK_NOW_SPEC "" +#endif + #ifdef ENABLE_DEFAULT_PIE #define NO_PIE_SPEC "no-pie|static" #define PIE_SPEC NO_PIE_SPEC "|r|shared:;" @@ -1013,7 +1020,7 @@ proper position among the other output f %(linker) " \ LINK_PLUGIN_SPEC \ "%{flto|flto=*:%