ANDROID: arch: force -fno-pic
authorGreg Hackmann <ghackmann@google.com>
Tue, 2 Dec 2014 00:13:30 +0000 (16:13 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit9709dab98eb1e1132dc89358cefbd10e424874eb
tree4a34bdac8b979b8c30cd15771c2024424ca158b8
parent46ace50ce6a2f7a5abf1c1218905a88f9af38db2
ANDROID: arch: force -fno-pic

The Android toolchains enable -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>
[AmitP: Folded following android-4.9 commit changes into this patch
        5acb60f60a2c ("ANDROID: arch: x86: disable pic for Android toolchain")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
arch/arm64/Makefile
arch/x86/Makefile