diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-03-07 20:14:46 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-03-07 20:14:46 +0000 |
commit | fd67077071422de4142fee1a503eb3f51ae23a26 (patch) | |
tree | 4f8a9355bf11c3502e46145775f18a5dc72d52f1 /sys/conf | |
parent | 4388fb8eb58edb77cefd62079e82719ee96cc09e (diff) | |
download | FreeBSD-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.powerpc | 3 |
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 |