galeb

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

0042-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch (583B)


      1 From: Alpine Linux community
      2 From: Olsken (updated patches)
      3 Date: Sat, 21 Aug 2021 08:51:52 +0000
      4 
      5 diff --git a/gcc/gcc.c b/gcc/gcc.c
      6 index bc1bd1686..b5c83977f 100644
      7 --- a/gcc/gcc.c
      8 +++ b/gcc/gcc.c
      9 @@ -1005,6 +1005,12 @@ proper position among the other output files.  */
     10  #define NO_SSP_SPEC ""
     11  #endif
     12  
     13 +#ifdef ENABLE_DEFAULT_SSP
     14 +#define NO_SSP_SPEC "%{nostdlib|nodefaultlibs|ffreestanding:-fno-stack-protector} "
     15 +#else
     16 +#define NO_SSP_SPEC ""
     17 +#endif
     18 +
     19  #ifndef LINK_SSP_SPEC
     20  #ifdef TARGET_LIBC_PROVIDES_SSP
     21  #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \