musl-cross-make/patches/gcc-9.1.0/0001-ssp_nonshared.diff
Kevin Mark 0e455cd5ba
Support GCC 9.1.0
Rebased the patches for GCC 8.3.0 onto 9.1.0. Not all applied
cleanly, particularly the PIE patch so I had to get a little
creative. Could definitely use an extra pair of eyes on these
patches.

Independent verification of the SHA1 is always appreciated.

Verified compile with the following config.mak:

    BINUTILS_VER = 2.32
    GCC_VER = 9.1.0
    GMP_VER = 6.1.2
    MPC_VER = 1.1.0
    MPFR_VER = 4.0.2
    ISL_VER = 0.21
    LINUX_VER = 3.0.35

    COMMON_CONFIG += --disable-nls
    GCC_CONFIG += --enable-languages=c,c++
    GCC_CONFIG += --disable-libquadmath --disable-decimal-float
    GCC_CONFIG += --disable-multilib
2019-06-30 23:53:50 -04:00

15 lines
593 B
Diff

diff --git a/gcc/gcc.c b/gcc/gcc.c
index 4f57765b0..d185c01b2 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -878,7 +878,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" \