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~2958^2~123 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e0392618c37189ddc579738e846febffe80bc25;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 cd822d8454c0..0527827f3d14 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -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)