]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie.
authorJakub Jelinek <jakub@redhat.com>
Fri, 11 Feb 2005 21:06:45 +0000 (22:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 11 Feb 2005 21:06:45 +0000 (22:06 +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: r94891

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

index 19e4d7bd956bd1b6b0413f0fc3e57115275ef01c..730a39439daae842f6b411e5af508b420d4ad1f7 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-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/19579
index 5c2c360f7e6e8c806483e3f43aece08778bcbb66..57af869db4435896699ee2c8d8755960ab3b6c9c 100644 (file)
@@ -1115,8 +1115,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 ""