galeb

Једноставна статичка дистрибуција заснована на musl-у
git clone https://git.sr.ht/~strahinja/galeb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

0019-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch (1193B)


      1 From d2577dc78a1f159e5c41fd0b53e73fa0e264cb52 Mon Sep 17 00:00:00 2001
      2 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
      3 Date: Fri, 21 Aug 2020 07:03:00 +0000
      4 Subject: [PATCH] Alpine musl package provides libssp_nonshared.a. We link to
      5  it unconditionally, as otherwise we get link failures if some objects are
      6  -fstack-protector built and final link happens with -fno-stack-protector.
      7  This seems to be the common case when bootstrapping gcc, the piepatches do
      8  not seem to fully fix the crosstoolchain and  bootstrap sequence wrt.
      9  stack-protector flag usage.
     10 
     11 ---
     12  gcc/gcc.cc | 3 +--
     13  1 file changed, 1 insertion(+), 2 deletions(-)
     14 
     15 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
     16 index cc99d0b7aa1..c60a75371f8 100644
     17 --- a/gcc/gcc.cc
     18 +++ b/gcc/gcc.cc
     19 @@ -1004,8 +1004,7 @@ proper position among the other output files.  */
     20  
     21  #ifndef LINK_SSP_SPEC
     22  #ifdef TARGET_LIBC_PROVIDES_SSP
     23 -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
     24 -		       "|fstack-protector-strong|fstack-protector-explicit:}"
     25 +#define LINK_SSP_SPEC "-lssp_nonshared"
     26  #else
     27  #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
     28  		       "|fstack-protector-strong|fstack-protector-explicit" \