From: Sami Tolvanen Date: Fri, 14 Sep 2018 16:17:55 +0000 (-0700) Subject: [RAMEN9610-14440] ANDROID: kbuild: disable LTO_CLANG with KASAN X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84b5e124d8b5155d29ccd02bfb0045a0a379f4d2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-14440] ANDROID: kbuild: disable LTO_CLANG with KASAN Using LTO with KASAN currently results in "inlinable function call in a function with debug info must have a !dbg location" errors for memset and several of the __asan_report_* functions. As combining these options doesn't provide significant benefits, this change disables LTO_CLANG when KASAN is selected. Bug: 113246877 Change-Id: I06cd27d1e9ab74627de4771548453abe3593fcb5 Signed-off-by: Sami Tolvanen --- diff --git a/arch/Kconfig b/arch/Kconfig index 03cff3c16b1c..62f5ba17ec31 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -629,6 +629,7 @@ config LTO_CLANG bool "Use clang Link Time Optimization (LTO) (EXPERIMENTAL)" depends on ARCH_SUPPORTS_LTO_CLANG depends on !FTRACE_MCOUNT_RECORD || HAVE_C_RECORDMCOUNT + depends on !KASAN select LTO select THIN_ARCHIVES select LD_DEAD_CODE_DATA_ELIMINATION