Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 12.2.0/musl/nocross/
Date: Sun, 29 Jan 2023 10:26:30
Message-Id: 1674982415.4ec26d74c881c1fb4fd0c49aa9162ad56d5d0138.sam@gentoo
1 commit: 4ec26d74c881c1fb4fd0c49aa9162ad56d5d0138
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 29 08:53:24 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 08:53:35 2023 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=4ec26d74
7
8 12.2.0: delete old stale nocross patch
9
10 Fixes: 6cbc18ad615fd39e765d114db4ed13d801e79f14
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../nocross/50_all_libssp_unconditionally.patch | 24 ----------------------
14 1 file changed, 24 deletions(-)
15
16 diff --git a/12.2.0/musl/nocross/50_all_libssp_unconditionally.patch b/12.2.0/musl/nocross/50_all_libssp_unconditionally.patch
17 deleted file mode 100644
18 index a3b5984..0000000
19 --- a/12.2.0/musl/nocross/50_all_libssp_unconditionally.patch
20 +++ /dev/null
21 @@ -1,24 +0,0 @@
22 -https://bugs.gentoo.org/706210
23 -https://bugs.gentoo.org/747346
24 -
25 -Author: Timo Teräs <timo.teras@×××.fi>
26 -
27 -"Alpine musl package provides libssp_nonshared.a. We link to it unconditionally,
28 -as otherwise we get link failures if some objects are -fstack-protector built
29 -and final link happens with -fno-stack-protector. This seems to be the common
30 -case when bootstrapping gcc, the piepatches do not seem to fully fix the
31 -crosstoolchain and bootstrap sequence wrt. stack-protector flag usage."
32 -
33 -(We do the same in Gentoo.)
34 ---- a/gcc/gcc.cc
35 -+++ b/gcc/gcc.cc
36 -@@ -870,8 +870,7 @@
37 -
38 - #ifndef LINK_SSP_SPEC
39 - #ifdef TARGET_LIBC_PROVIDES_SSP
40 --#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
41 -- "|fstack-protector-strong|fstack-protector-explicit:}"
42 -+#define LINK_SSP_SPEC "-lssp_nonshared"
43 - #else
44 - #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
45 - "|fstack-protector-strong|fstack-protector-explicit" \