From: Greg Hackmann Date: Tue, 2 Dec 2014 00:13:30 +0000 (-0800) Subject: arch: arm64: force -fno-pic X-Git-Tag: firefly_0821_release~4090^2~149 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b2a582d102c4deb9e6a34f784e0700f642c50e8a;p=firefly-linux-kernel-4.4.55.git arch: arm64: force -fno-pic 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 --- diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index fb8c8f0fbf4f..2b27721f5a71 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -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