musl-cross-make/patches/gcc-15.1.0/0001-ssp_nonshared.diff
userdocs baad915870 add support for gcc 15.1.0
This adds the patches from the previously tested gcc version 14.3.0
and they have been tested to successfully apply to 15.1.0 with no
issues.

The corresponding hash has been added.
2025-07-21 00:19:03 +00:00

15 lines
601 B
Diff

diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 7837553958b..3c81c5798d8 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -980,7 +980,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" \