summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2015-12-03 00:08:50 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2015-12-03 00:08:50 +0000
commit4de68fe96ca5aeb0ae05c52543409c56d13523f0 (patch)
treeb3650fa54c69a42130bb3c8626b00793885d3304
parente9024539df03d528c1f2ec44de520d0bc6b43236 (diff)
downloadFreeBSD-src-4de68fe96ca5aeb0ae05c52543409c56d13523f0.zip
FreeBSD-src-4de68fe96ca5aeb0ae05c52543409c56d13523f0.tar.gz
Clean up PowerPC bootloader compiler flags to fix the build with GCC 5.2
and binutils 2.25.
-rw-r--r--sys/boot/powerpc/Makefile.inc1
-rw-r--r--sys/boot/powerpc/boot1.chrp/Makefile2
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/boot/powerpc/Makefile.inc b/sys/boot/powerpc/Makefile.inc
index e67c0dc..1b62477 100644
--- a/sys/boot/powerpc/Makefile.inc
+++ b/sys/boot/powerpc/Makefile.inc
@@ -2,7 +2,6 @@
.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+= -m32 -mcpu=powerpc
-LDFLAGS+= -m elf32ppc_fbsd
.endif
.include "../Makefile.inc"
diff --git a/sys/boot/powerpc/boot1.chrp/Makefile b/sys/boot/powerpc/boot1.chrp/Makefile
index c350e5c..381d2a8 100644
--- a/sys/boot/powerpc/boot1.chrp/Makefile
+++ b/sys/boot/powerpc/boot1.chrp/Makefile
@@ -12,7 +12,7 @@ SRCS= boot1.c ashldi3.c syncicache.c
MAN=
-CFLAGS= -ffreestanding -msoft-float -Os \
+CFLAGS= -ffreestanding -msoft-float \
-I${.CURDIR}/../../common -I${.CURDIR}/../../../ \
-D_STANDALONE
LDFLAGS=-nostdlib -static -Wl,-N
OpenPOWER on IntegriCloud