sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie.
authorJakub Jelinek <jakub@redhat.com>
Fri, 11 Feb 2005 21:05:28 +0000 (22:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 Feb 2005 21:05:28 +0000 (22:05 +0100)
* 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

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

index f41bfac366b784aaae87670d2a3f6112a4d47d61..b88ef126485f664dce1a001112b88cd990acf2c1 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 d2b3cef8054d57fb0842a0e31a81f8353d94035a..ba62b0a0601614d3decded1003e57970106a3a91 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 ""