summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2015-03-07 20:14:46 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2015-03-07 20:14:46 +0000
commitfd67077071422de4142fee1a503eb3f51ae23a26 (patch)
tree4f8a9355bf11c3502e46145775f18a5dc72d52f1 /sys/conf
parent4388fb8eb58edb77cefd62079e82719ee96cc09e (diff)
downloadFreeBSD-src-fd67077071422de4142fee1a503eb3f51ae23a26.zip
FreeBSD-src-fd67077071422de4142fee1a503eb3f51ae23a26.tar.gz
Make 32-bit PowerPC kernels, like 64-bit PowerPC kernels, position-independent
executables. The goal here, not yet accomplished, is to let the e500 kernel run under QEMU by setting KERNBASE to something that fits in low memory and then having the kernel relocate itself at runtime.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/Makefile.powerpc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index e2d5157..769b068 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -37,10 +37,9 @@ INCLUDES+= -I$S/contrib/libfdt
CFLAGS+= -msoft-float -Wa,-many
-.if ${MACHINE_ARCH} == "powerpc64"
+# Build position-independent kernel
CFLAGS+= -fPIC
LDFLAGS+= -pie
-.endif
.if !empty(DDB_ENABLED)
CFLAGS+= -fno-omit-frame-pointer
OpenPOWER on IntegriCloud