You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
411 B

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