1
0

230-musl_libssp.patch 411 B

12345678910111213
  1. --- a/gcc/gcc.c
  2. +++ b/gcc/gcc.c
  3. @@ -868,7 +868,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