0001-ssp_nonshared.patch 864 B

123456789101112131415161718192021222324252627
  1. From 58973b2d754b619f62b1a899742c3c86486a1246 Mon Sep 17 00:00:00 2001
  2. From: Szabolcs Nagy <nsz@port70.net>
  3. Date: Sat, 7 Nov 2015 14:58:40 +0000
  4. Subject: [PATCH 01/12] ssp_nonshared
  5. ---
  6. gcc/gcc.c | 3 ++-
  7. 1 file changed, 2 insertions(+), 1 deletion(-)
  8. diff --git a/gcc/gcc.c b/gcc/gcc.c
  9. index a716f708259..eb1610ba8b0 100644
  10. --- a/gcc/gcc.c
  11. +++ b/gcc/gcc.c
  12. @@ -870,7 +870,8 @@ proper position among the other output files. */
  13. #ifndef LINK_SSP_SPEC
  14. #ifdef TARGET_LIBC_PROVIDES_SSP
  15. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  16. - "|fstack-protector-strong|fstack-protector-explicit:}"
  17. + "|fstack-protector-strong|fstack-protector-explicit" \
  18. + ":-lssp_nonshared}"
  19. #else
  20. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  21. "|fstack-protector-strong|fstack-protector-explicit" \
  22. --
  23. 2.17.1