From: huangzq2 Date: Wed, 26 Dec 2018 05:21:00 +0000 (+0800) Subject: Disable CFI on debug build X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f70d4520ef6e4c74745c64000161b44ac16194be;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Disable CFI on debug build Change-Id: Ibadd61004a56d21342b43cbd270b06702e81d2f8 Signed-off-by: huangzq2 Reviewed-on: https://gerrit.mot.com/1287029 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/arch/arm64/configs/ext_config/debug-erd9610.config b/arch/arm64/configs/ext_config/debug-erd9610.config index 8d0f0366f9b3..64cef242af26 100644 --- a/arch/arm64/configs/ext_config/debug-erd9610.config +++ b/arch/arm64/configs/ext_config/debug-erd9610.config @@ -57,4 +57,11 @@ CONFIG_DEBUG_SPINLOCK_BITE_ON_BUG=y CONFIG_PAGE_POISONING=y # CONFIG_DEBUG_SNAPSHOT_MINIMIZED_MODE is not set CONFIG_BUG_ON_DATA_CORRUPTION=y + +# Disable CFI on debug build +# CONFIG_CFI is not set +# CONFIG_LTO is not set +# CONFIG_CFI_CLANG is not set +# CONFIG_LTO_CLANG is not set CONFIG_CFI_PERMISSIVE=y +CONFIG_LTO_NONE=y