1
0
mirror of https://github.com/cjdelisle/openwrt.git synced 2025-08-11 14:33:09 +00:00
Files
openwrt/toolchain/gcc/patches-15.x/230-musl_libssp.patch
Rui Salvaterra 68cb84183e toolchain: add support for GCC 15.1
All patches automatically refreshed.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18600
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-08 12:20:15 +02:00

14 lines
413 B
Diff

--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -992,7 +992,9 @@ proper position among the other output f
#endif
#ifndef LINK_SSP_SPEC
-#ifdef TARGET_LIBC_PROVIDES_SSP
+#if DEFAULT_LIBC == LIBC_MUSL
+#define LINK_SSP_SPEC "-lssp_nonshared"
+#elif defined(TARGET_LIBC_PROVIDES_SSP)
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
"|fstack-protector-strong|fstack-protector-explicit:}"
#else