0001-ssp_nonshared.diff 597 B

123456789101112131415
  1. diff --git a/gcc/gcc.c b/gcc/gcc.c
  2. index c48178f1aa3..e2fae4ef055 100644
  3. --- a/gcc/gcc.c
  4. +++ b/gcc/gcc.c
  5. @@ -863,7 +863,8 @@ proper position among the other output files. */
  6. #ifndef LINK_SSP_SPEC
  7. #ifdef TARGET_LIBC_PROVIDES_SSP
  8. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  9. - "|fstack-protector-strong|fstack-protector-explicit:}"
  10. + "|fstack-protector-strong|fstack-protector-explicit" \
  11. + ":-lssp_nonshared}"
  12. #else
  13. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  14. "|fstack-protector-strong|fstack-protector-explicit" \