From c32f5a21dce4ad7d32a4573c7a99bf50e384075c Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 13 Aug 2015 01:02:57 +0000 Subject: MFC r286074: GCC: Add a new option "-fstack-protector-strong" This includes additional functions to be protected: those that have local array definitions, or have references to local frame addresses. This is a new option in GCC-4.9 that was relicensed by Han Shen from Google under GPLv2. Obtained from: OpenBSD (2014-01-14) --- contrib/gcc/gcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/gcc/gcc.c') diff --git a/contrib/gcc/gcc.c b/contrib/gcc/gcc.c index 5ed3a82..91e750a 100644 --- a/contrib/gcc/gcc.c +++ b/contrib/gcc/gcc.c @@ -680,7 +680,7 @@ proper position among the other output files. */ #ifdef TARGET_LIBC_PROVIDES_SSP #define LINK_SSP_SPEC "%{fstack-protector:}" #else -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}" +#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-strong|fstack-protector-all:-lssp_nonshared -lssp}" #endif #endif -- cgit v1.1