summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-6.1/0041-ssp_nonshared.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-6.1/0041-ssp_nonshared.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-6.1/0041-ssp_nonshared.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-6.1/0041-ssp_nonshared.patch b/meta/recipes-devtools/gcc/gcc-6.1/0041-ssp_nonshared.patch
new file mode 100644
index 0000000000..0744529741
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-6.1/0041-ssp_nonshared.patch
@@ -0,0 +1,28 @@
1From 551a5db7acb56e085a101f1c222d51b2c1b039a4 Mon Sep 17 00:00:00 2001
2From: Szabolcs Nagy <nsz@port70.net>
3Date: Sat, 7 Nov 2015 14:58:40 +0000
4Subject: [PATCH 41/46] ssp_nonshared
5
6---
7Upstream-Status: Inappropriate [OE Configuration]
8
9 gcc/gcc.c | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12diff --git a/gcc/gcc.c b/gcc/gcc.c
13index 2812819..9de96ee 100644
14--- a/gcc/gcc.c
15+++ b/gcc/gcc.c
16@@ -863,7 +863,8 @@ proper position among the other output files. */
17 #ifndef LINK_SSP_SPEC
18 #ifdef TARGET_LIBC_PROVIDES_SSP
19 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
20- "|fstack-protector-strong|fstack-protector-explicit:}"
21+ "|fstack-protector-strong|fstack-protector-explicit" \
22+ ":-lssp_nonshared}"
23 #else
24 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
25 "|fstack-protector-strong|fstack-protector-explicit" \
26--
272.8.2
28