extra-musl_libssp.patch 411 B

1234567891011121314
  1. --- a/gcc/gcc.c
  2. +++ b/gcc/gcc.c
  3. @@ -876,7 +876,9 @@ proper position among the other output f
  4. #endif
  5. #ifndef LINK_SSP_SPEC
  6. -#ifdef TARGET_LIBC_PROVIDES_SSP
  7. +#if DEFAULT_LIBC == LIBC_MUSL
  8. +#define LINK_SSP_SPEC "-lssp_nonshared"
  9. +#elif defined(TARGET_LIBC_PROVIDES_SSP)
  10. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  11. "|fstack-protector-strong|fstack-protector-explicit:}"
  12. #else