0005-staticpie.diff 1.1 KB

123456789101112131415161718192021222324
  1. --- gcc-5.2.0.orig/gcc/config/gnu-user.h 2015-01-05 12:33:28.000000000 +0000
  2. +++ gcc-5.2.0/gcc/config/gnu-user.h 2015-08-25 08:15:18.354957759 +0000
  3. @@ -42,8 +42,8 @@
  4. #if defined HAVE_LD_PIE
  5. #define GNU_USER_TARGET_STARTFILE_SPEC \
  6. - "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
  7. - crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} \
  8. + "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:%{static:rcrt1.o%s;:Scrt1.o%s};:crt1.o%s}} \
  9. + crti.o%s %{shared|pie:crtbeginS.o%s;static:crtbeginT.o%s;:crtbegin.o%s} \
  10. %{fvtable-verify=none:%s; \
  11. fvtable-verify=preinit:vtv_start_preinit.o%s; \
  12. fvtable-verify=std:vtv_start.o%s}"
  13. --- gcc-5.2.0.orig/gcc/config/sh/linux.h 2015-01-05 12:33:28.000000000 +0000
  14. +++ gcc-5.2.0/gcc/config/sh/linux.h 2015-08-25 07:57:14.161690536 +0000
  15. @@ -53,7 +75,7 @@
  16. %{!static: \
  17. %{rdynamic:-export-dynamic} \
  18. -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
  19. - %{static:-static}"
  20. + %{static:-static -E --no-dynamic-linker}"
  21. /* Output assembler code to STREAM to call the profiler. */
  22. #undef FUNCTION_PROFILER