123456789101112131415161718192021222324 |
- --- gcc-5.2.0.orig/gcc/config/gnu-user.h 2015-01-05 12:33:28.000000000 +0000
- +++ gcc-5.2.0/gcc/config/gnu-user.h 2015-08-25 08:15:18.354957759 +0000
- @@ -42,8 +42,8 @@
-
- #if defined HAVE_LD_PIE
- #define GNU_USER_TARGET_STARTFILE_SPEC \
- - "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
- - crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} \
- + "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:%{static:rcrt1.o%s;:Scrt1.o%s};:crt1.o%s}} \
- + crti.o%s %{shared|pie:crtbeginS.o%s;static:crtbeginT.o%s;:crtbegin.o%s} \
- %{fvtable-verify=none:%s; \
- fvtable-verify=preinit:vtv_start_preinit.o%s; \
- fvtable-verify=std:vtv_start.o%s}"
- --- gcc-5.2.0.orig/gcc/gcc.c 2015-03-10 09:37:41.000000000 +0000
- +++ gcc-5.2.0/gcc/gcc.c 2015-09-30 00:25:33.225927941 +0000
- @@ -739,7 +739,7 @@
-
- #ifndef LINK_PIE_SPEC
- #ifdef HAVE_LD_PIE
- -#define LINK_PIE_SPEC "%{pie:-pie} "
- +#define LINK_PIE_SPEC "%{pie:-pie %{static:--no-dynamic-linker}} "
- #else
- #define LINK_PIE_SPEC "%{pie:} "
- #endif
|