Disable CFI on debug build
authorhuangzq2 <huangzq2@motorola.com>
Wed, 26 Dec 2018 05:21:00 +0000 (13:21 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:29 +0000 (17:30 +0800)
Change-Id: Ibadd61004a56d21342b43cbd270b06702e81d2f8
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1287029
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

arch/arm64/configs/ext_config/debug-erd9610.config

index 8d0f0366f9b36f0ebd1da751c253359cb4fe1f03..64cef242af266625149bb1e098986bd365d5a42d 100644 (file)
@@ -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