aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/206-ssp_nonshared.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/206-ssp_nonshared.patch')
-rw-r--r--main/gcc/206-ssp_nonshared.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/gcc/206-ssp_nonshared.patch b/main/gcc/206-ssp_nonshared.patch
new file mode 100644
index 0000000000..d819dd9d98
--- /dev/null
+++ b/main/gcc/206-ssp_nonshared.patch
@@ -0,0 +1,26 @@
+From dcdbeb92e5e9dc59eeb082b5783104f2eb83c5e4 Mon Sep 17 00:00:00 2001
+From: Szabolcs Nagy <nsz@port70.net>
+Date: Sat, 7 Nov 2015 14:58:40 +0000
+Subject: [PATCH 6/6] ssp_nonshared
+
+---
+ gcc/gcc.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/gcc.c b/gcc/gcc.c
+index 1af5920..0208d61 100644
+--- a/gcc/gcc.c
++++ b/gcc/gcc.c
+@@ -860,7 +860,8 @@ proper position among the other output files. */
+ #ifndef LINK_SSP_SPEC
+ #ifdef TARGET_LIBC_PROVIDES_SSP
+ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
+- "|fstack-protector-strong|fstack-protector-explicit:}"
++ "|fstack-protector-strong|fstack-protector-explicit" \
++ ":-lssp_nonshared}"
+ #else
+ #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
+ "|fstack-protector-strong|fstack-protector-explicit" \
+--
+2.8.1
+