galeb

Једноставна статичка дистрибуција заснована на musl-у
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

0021-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch (1198B)


      1 From c6b54651688cf062ae48ca3402d6d2e08b70ceed 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.c | 3 +--
     13  1 file changed, 1 insertion(+), 2 deletions(-)
     14 
     15 diff --git a/gcc/gcc.c b/gcc/gcc.c
     16 index daeb4d0c8ea..6920bec0fa0 100644
     17 --- a/gcc/gcc.c
     18 +++ b/gcc/gcc.c
     19 @@ -894,8 +894,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" \
     29 -- 
     30 2.31.1
     31