wok-next
annotate 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 |
|
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" \
|