wok-next annotate gcc/stuff/patches/gcc-6.1-musl-libssp.patch @ rev 21060

Update: binutils (2.31.1), bison (3.2.2), gcc (8.2.0), glibc (2.28), linux (4.14.85)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Dec 05 02:04:28 2018 +0200 (2018-12-05)
parents
children
rev   line source
al@21060 1 Author: Timo Teräs <timo.teras@iki.fi>
al@21060 2
al@21060 3 Alpine musl package provides libssp_nonshared.a. We link to it unconditionally,
al@21060 4 as otherwise we get link failures if some objects are -fstack-protector built
al@21060 5 and final link happens with -fno-stack-protector. This seems to be the common
al@21060 6 case when bootstrapping gcc, the piepatches do not seem to fully fix the
al@21060 7 crosstoolchain and bootstrap sequence wrt. stack-protector flag usage.
al@21060 8
al@21060 9 --- gcc-6.1.0/gcc/gcc.c.orig
al@21060 10 +++ gcc-6.1.0/gcc/gcc.c
al@21060 11 @@ -870,8 +870,7 @@
al@21060 12
al@21060 13 #ifndef LINK_SSP_SPEC
al@21060 14 #ifdef TARGET_LIBC_PROVIDES_SSP
al@21060 15 -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
al@21060 16 - "|fstack-protector-strong|fstack-protector-explicit:}"
al@21060 17 +#define LINK_SSP_SPEC "-lssp_nonshared"
al@21060 18 #else
al@21060 19 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
al@21060 20 "|fstack-protector-strong|fstack-protector-explicit" \