From 1559cbe1ebcea1dac3f5c3a40a51efedd7766ffc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 7 Sep 2024 14:55:46 +0000 Subject: Initial commit Signed-off-by: Laurent Bercot --- musl/patches-in-mcm/gcc-10.1.0/0001-ssp_nonshared.diff | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 musl/patches-in-mcm/gcc-10.1.0/0001-ssp_nonshared.diff (limited to 'musl/patches-in-mcm/gcc-10.1.0/0001-ssp_nonshared.diff') diff --git a/musl/patches-in-mcm/gcc-10.1.0/0001-ssp_nonshared.diff b/musl/patches-in-mcm/gcc-10.1.0/0001-ssp_nonshared.diff new file mode 100644 index 0000000..9e2fcca --- /dev/null +++ b/musl/patches-in-mcm/gcc-10.1.0/0001-ssp_nonshared.diff @@ -0,0 +1,14 @@ +diff --git a/gcc/gcc.c b/gcc/gcc.c +index 9f790db0daf..e6887590ae2 100644 +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -877,7 +877,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" \ -- cgit v1.3.1