From: Jakub Jelinek Date: Fri, 11 Feb 2005 21:05:28 +0000 (+0100) Subject: sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28f8ecf9120fefbc4b046b256c0731a270dc6c7b;p=gcc.git sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie. * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie. Use %{x:a;:b} spec syntax. From-SVN: r94890 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f41bfac366b..b88ef126485 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-11 Jakub Jelinek + + * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of + crtend.o if -pie. Use %{x:a;:b} spec syntax. + 2005-02-11 Daniel Jacobowitz * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index d2b3cef8054..ba62b0a0601 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -1124,8 +1124,9 @@ extern int fixuplabelno; %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" #endif -#define ENDFILE_LINUX_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} \ -%{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}" +#define ENDFILE_LINUX_SPEC "\ +%{shared|pie:crtendS.o%s;:crtend.o%s} \ +%{mnewlib:ecrtn.o%s;:crtn.o%s}" #define LINK_START_LINUX_SPEC ""