powerpc64-linux crtsavres.o

Alan Modra amodra@bigpond.net.au
Thu Apr 4 20:45:00 GMT 2002


I've just checked in the following to mainline, and will commit to
3.1 in a moment, approved privately by David Edelsohn.  ENDFILE_SPEC
from rs6000/sysv4.h wants crtsavres.o, and it was either this or
duplicate ENDFILE_SPEC in rs6000/linux64.h

	* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
	Add rules to make null object file.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

Index: gcc/config/rs6000/t-linux64
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/t-linux64,v
retrieving revision 1.2
diff -u -p -r1.2 t-linux64
--- t-linux64	2002/04/04 02:38:46	1.2
+++ t-linux64	2002/04/05 01:45:15
@@ -2,7 +2,15 @@
 CRTSTUFF_T_CFLAGS_S =
 TARGET_LIBGCC2_CFLAGS =
 
-EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
+EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
+			crtsavres.o
+
+# ld provides these functions as needed.
+crtsavres.S:
+	echo >crtsavres.S
+
+$(T)crtsavres.o: crtsavres.S
+	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c crtsavres.S -o $(T)crtsavres.o
 
 # Modify the shared lib version file
 SHLIB_MKMAP_OPTS = -v dotsyms=1



More information about the Gcc-patches mailing list