wok-next view gcc/stuff/patches/gcc-6.1-musl-libssp.patch @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line source
1 Author: Timo Teräs <timo.teras@iki.fi>
3 Alpine musl package provides libssp_nonshared.a. We link to it unconditionally,
4 as otherwise we get link failures if some objects are -fstack-protector built
5 and final link happens with -fno-stack-protector. This seems to be the common
6 case when bootstrapping gcc, the piepatches do not seem to fully fix the
7 crosstoolchain and bootstrap sequence wrt. stack-protector flag usage.
9 --- gcc-6.1.0/gcc/gcc.c.orig
10 +++ gcc-6.1.0/gcc/gcc.c
11 @@ -870,8 +870,7 @@
13 #ifndef LINK_SSP_SPEC
14 #ifdef TARGET_LIBC_PROVIDES_SSP
15 -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
16 - "|fstack-protector-strong|fstack-protector-explicit:}"
17 +#define LINK_SSP_SPEC "-lssp_nonshared"
18 #else
19 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
20 "|fstack-protector-strong|fstack-protector-explicit" \