ANDROID: arm64: kvm: disable CFI

Disable CFI for code that runs at EL2 because __cfi_check only
understands EL1 addresses.

Bug: 67506682
Change-Id: Ia582943be0b31669d88464fd99228a5368b1aa6a
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
Sami Tolvanen 2018-04-23 12:52:07 -07:00 committed by Amit Pundir
parent 6e85026cf0
commit 9fb487de4f

View file

@ -4,7 +4,7 @@
#
ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING \
$(DISABLE_STACKLEAK_PLUGIN)
$(DISABLE_STACKLEAK_PLUGIN) $(DISABLE_CFI)
ifeq ($(cc-name),clang)
ccflags-y += -fno-jump-tables