This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix powerpc-linux linking against libc_p
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 8 Oct 2004 16:35:50 +0930
- Subject: fix powerpc-linux linking against libc_p
I'm applying this one as obvious to make our STARTFILE_SPEC choose
gcrt1.o when -profile is given, matching config/linux.h behaviour.
* config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
for -profile as well as -p and -pg.
--- gcc-virgin/gcc/config/rs6000/sysv4.h 2004-10-05 22:17:08.000000000 +0930
+++ gcc-current/gcc/config/rs6000/sysv4.h 2004-10-06 15:37:50.000000000 +0930
@@ -1110,12 +1110,12 @@ extern int fixuplabelno;
#ifdef HAVE_LD_PIE
#define STARTFILE_LINUX_SPEC "\
-%{!shared: %{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
+%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
%{mnewlib:ecrti.o%s;:crti.o%s} \
%{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
#else
#define STARTFILE_LINUX_SPEC "\
-%{!shared: %{pg|p:gcrt1.o%s;:crt1.o%s}} \
+%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}} \
%{mnewlib:ecrti.o%s;:crti.o%s} \
%{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
#endif
--
Alan Modra
IBM OzLabs - Linux Technology Centre