arch: arm64: force -fno-pic
authorGreg Hackmann <ghackmann@google.com>
Tue, 2 Dec 2014 00:13:30 +0000 (16:13 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:04 +0000 (13:54 -0800)
The aarch64-linux-android- toolchain enables -fpic by default.  -fpic
isn't needed for the kernel and breaks CONFIG_JUMP_LABEL, so turn it
off.

Change-Id: I685da1dc60e4cf1e9abcfb56e03654675ac02a0c
Signed-off-by: Greg Hackmann <ghackmann@google.com>
arch/arm64/Makefile

index cd822d8454c0536165810004089c3a7ce5d0068d..0527827f3d1471ab0b9390c630eb197cea5d9073 100644 (file)
@@ -27,6 +27,7 @@ $(warning LSE atomics not supported by binutils)
 endif
 
 KBUILD_CFLAGS  += -mgeneral-regs-only $(lseinstr)
+KBUILD_CFLAGS  += -fno-pic
 KBUILD_AFLAGS  += $(lseinstr)
 
 ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)