toolchain/gcc: Copy patches from 9.3.0 to 10.1.0
No content changes in this commit Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
This commit is contained in:
committed by
Petr Štetiar
parent
67ce9aedd6
commit
d0b25301d3
13
toolchain/gcc/patches/10.1.0/230-musl_libssp.patch
Normal file
13
toolchain/gcc/patches/10.1.0/230-musl_libssp.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/gcc/gcc.c
|
||||
+++ b/gcc/gcc.c
|
||||
@@ -876,7 +876,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
|
||||
Reference in New Issue
Block a user