230-musl_libssp.patch 413 B

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