musl-libssp.diff 906 B

123456789101112131415161718192021
  1. We link to it unconditionally, as otherwise we get link failures if
  2. some objects are -fstack-protector built and final link happens with
  3. -fno-stack-protector. This seems to be the common case when
  4. bootstrapping gcc, the piepatches do not seem to fully fix the
  5. crosstoolchain and bootstrap sequence wrt. stack-protector flag usage.
  6. Based on patch by Timo Teras for Alpine Linux.
  7. --- gcc-8-20180907/gcc/gcc.c.orig 2018-02-09 03:44:06.000000000 -0300
  8. +++ gcc-8-20180907/gcc/gcc.c 2018-09-12 17:43:14.078635112 -0300
  9. @@ -869,8 +869,7 @@
  10. #ifndef LINK_SSP_SPEC
  11. #ifdef TARGET_LIBC_PROVIDES_SSP
  12. -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  13. - "|fstack-protector-strong|fstack-protector-explicit:}"
  14. +#define LINK_SSP_SPEC "-lssp_nonshared"
  15. #else
  16. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  17. "|fstack-protector-strong|fstack-protector-explicit" \