From 3e1624332ad69171ea8f997ed45d355d5245e50f Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Tue, 30 Apr 2019 13:23:12 -0700 Subject: [PATCH] ANDROID: x86: disable STACK_VALIDATION with LTO_CLANG Disable CONFIG_STACK_VALIDATION with LTO, because objtool doesn't understand LLVM IR. Bug: 133186739 Change-Id: I3f2bd3f0ce6c80f88bd00394453b543f884188f2 Signed-off-by: Sami Tolvanen --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index feef7a28cd71..bfc4a817bd3f 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -185,7 +185,7 @@ config X86 select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_RELIABLE_STACKTRACE if X86_64 && (UNWINDER_FRAME_POINTER || UNWINDER_ORC) && STACK_VALIDATION select HAVE_STACKPROTECTOR if CC_HAS_SANE_STACKPROTECTOR - select HAVE_STACK_VALIDATION if X86_64 + select HAVE_STACK_VALIDATION if X86_64 && !LTO_CLANG select HAVE_RSEQ select HAVE_SYSCALL_TRACEPOINTS select HAVE_UNSTABLE_SCHED_CLOCK