diff options
author | Ryan Hill <rhill@gentoo.org> | 2011-07-01 07:17:42 +0000 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2011-07-01 07:17:42 +0000 |
commit | a633734c66e1b5bc77f9b03bb37014fc8cf542b7 (patch) | |
tree | ff6e3756eaaebf0ed0a6412b0cd1579dcb40657b /4.3.6/pie/11_all_gcc-4.3-sparc-gen-crt-start-endfiles.patch | |
parent | Fix patch filename and push out 4.3.4 p1.3. (diff) | |
download | gcc-patches-a633734c66e1b5bc77f9b03bb37014fc8cf542b7.tar.gz gcc-patches-a633734c66e1b5bc77f9b03bb37014fc8cf542b7.tar.bz2 gcc-patches-a633734c66e1b5bc77f9b03bb37014fc8cf542b7.zip |
Initial 4.3.6 patchset based on latest 4.3.5 patchset.
Diffstat (limited to '4.3.6/pie/11_all_gcc-4.3-sparc-gen-crt-start-endfiles.patch')
-rw-r--r-- | 4.3.6/pie/11_all_gcc-4.3-sparc-gen-crt-start-endfiles.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/4.3.6/pie/11_all_gcc-4.3-sparc-gen-crt-start-endfiles.patch b/4.3.6/pie/11_all_gcc-4.3-sparc-gen-crt-start-endfiles.patch new file mode 100644 index 0000000..c23245a --- /dev/null +++ b/4.3.6/pie/11_all_gcc-4.3-sparc-gen-crt-start-endfiles.patch @@ -0,0 +1,46 @@ +2008-11-26 Magnus Granberg <zorry@ume.nu> + Peter S. Mazinger <ps.m@gmx.net> + + * gcc/config/sparc/linux64.h: Move CRT, START and ENDFILE to gcc/gcc.c + * gcc/config/sparc/linux.h: Likewise. + +--- gcc/config/sparc/linux64.h ++++ gcc/config/sparc/linux64.h +@@ -83,7 +74,7 @@ + #undef ENDFILE_SPEC + + #define ENDFILE_SPEC \ +- "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\ ++ "%(endfile_pie_gen) crtn.o%s\ + %{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + + /* The GNU C++ standard library requires that these macros be defined. */ +@@ -281,7 +272,7 @@ + %{T} \ + %{Ym,*} \ + %{Wa,*:%*} \ +--s %{fpic|fPIC|fpie|fPIE:-K PIC} \ ++-s %{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_pie) \ + %{mlittle-endian:-EL} \ + %(asm_cpu) %(asm_arch) %(asm_relax)" + +--- gcc/config/sparc/linux.h ++++ gcc/config/sparc/linux.h +@@ -64,7 +56,7 @@ + + #undef ENDFILE_SPEC + #define ENDFILE_SPEC \ +- "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\ ++ "%(endfile_pie_gen) crtn.o%s\ + %{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + + /* This is for -profile to use -lc_p instead of -lc. */ +@@ -146,7 +138,7 @@ + #undef ASM_SPEC + #define ASM_SPEC \ + "%{V} %{v:%{!V:-V}} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \ +- %{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu) %(asm_relax)" ++ %{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_pie) %(asm_cpu) %(asm_relax)" + + /* Same as sparc.h */ + #undef DBX_REGISTER_NUMBER |