OSDN Git Service

* config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Feb 2005 21:05:28 +0000 (21:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Feb 2005 21:05:28 +0000 (21:05 +0000)
crtend.o if -pie.  Use %{x:a;:b} spec syntax.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94890 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/sysv4.h

index f41bfac..b88ef12 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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  <dan@codesourcery.com>
 
        * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
index d2b3cef..ba62b0a 100644 (file)
@@ -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 ""