From 5d031e332fb8a7cb0b3ccd7545048132966a45ec Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 12 Jan 2019 21:29:54 +0000 Subject: Create crtsavres.o for powerpc builds Summary: GCC expects to link in a crtsavres.o on powerpc platforms. On powerpc64 this is an empty file, but on powerpc and powerpcspe this does contain some save/restore functions, which may not actually be necessary for newer modern GCC and clang. This appeases the in-tree gcc, though, and is needed in order to switch to the BSD CRTRBEGIN. PR: 233751 Reviewed By: andrew Differential Revision: https://reviews.freebsd.org/D18826 --- gnu/lib/csu/Makefile | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gnu/lib') diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile index d981fb11054e..d754a588a6f0 100644 --- a/gnu/lib/csu/Makefile +++ b/gnu/lib/csu/Makefile @@ -28,10 +28,6 @@ CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG} CFLAGS+= -DTARGET_ARM_EABI .endif -.if ${MACHINE_CPUARCH} == "powerpc" -TGTOBJS= crtsavres.o -SRCS+= crtsavres.asm -.endif .if ${MACHINE_CPUARCH} == "sparc64" TGTOBJS= crtfastmath.o SRCS+= crtfastmath.c -- cgit v1.3