summaryrefslogtreecommitdiffstats
path: root/gnu/gcc/ssp_nonshared.diff
blob: 2d3e5866a86be5fa6eb24fb3c2d89eb2478827b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/gcc/gcc.c b/gcc/gcc.c
index c48178f1aa3..e2fae4ef055 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -863,7 +863,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" \