diff options
author | pfg <pfg@FreeBSD.org> | 2015-08-13 01:02:57 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-08-13 01:02:57 +0000 |
commit | c32f5a21dce4ad7d32a4573c7a99bf50e384075c (patch) | |
tree | 6d4cb070f92d84a3dcfe158d8171b1a43cda5aaf /contrib/gcc/gcc.c | |
parent | 3e1f1ceab6f729496c14d5168e17d7aa4cb13f12 (diff) | |
download | FreeBSD-src-c32f5a21dce4ad7d32a4573c7a99bf50e384075c.zip FreeBSD-src-c32f5a21dce4ad7d32a4573c7a99bf50e384075c.tar.gz |
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)
Diffstat (limited to 'contrib/gcc/gcc.c')
-rw-r--r-- | contrib/gcc/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |