arch: arm64: force -fno-pic
authorGreg Hackmann <ghackmann@google.com>
Tue, 2 Dec 2014 00:13:30 +0000 (16:13 -0800)
committerGreg Hackmann <ghackmann@google.com>
Tue, 2 Dec 2014 00:30:58 +0000 (16:30 -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 fb8c8f0fbf4f8bb2f93871eec86e64826f63aa05..2b27721f5a71abe0674fc550b082e9797757f3f8 100644 (file)
@@ -20,6 +20,7 @@ LIBGCC                := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 KBUILD_DEFCONFIG := defconfig
 
 KBUILD_CFLAGS  += -mgeneral-regs-only
+KBUILD_CFLAGS  += -fno-pic
 KBUILD_CPPFLAGS        += -mlittle-endian
 AS             += -EL
 LD             += -EL