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
+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
%{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 ""