musl-cross-make/patches/gcc-8.5.0/0001-ssp_nonshared.diff

15 lines
597 B
Diff
Raw Permalink Normal View History

2019-05-26 21:22:55 +02:00
diff --git a/gcc/gcc.c b/gcc/gcc.c
index a716f708259..eb1610ba8b0 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -870,7 +870,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" \