From 9842120b602d83d52edffbfc0a19632924b6ce14 Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Mon, 29 Jan 2018 11:19:19 -0800 Subject: [PATCH] ANDROID: arm64: disable ARM64_ERRATUM_843419 for clang LTO CONFIG_LTO_CLANG depends on GNU gold, which can generate ADR_PREL_PG_HI21 relocations with --fix-cortex-a53-843419, even when -code-model=large has been passed to LLVMgold. Since ARM64_ERRATUM_843419 disables kernel support for these relocations, disable the erratum when LTO is used. Bug: 67506682 Change-Id: I5d419cae432a26af5b6eff362b869639c64c6fb3 Signed-off-by: Sami Tolvanen --- arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index cc904e0a1a59..4126a91a48f4 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -433,7 +433,7 @@ config ARM64_ERRATUM_845719 config ARM64_ERRATUM_843419 bool "Cortex-A53: 843419: A load or store might access an incorrect address" - default y + default y if !LTO_CLANG select ARM64_MODULE_CMODEL_LARGE if MODULES help This option links the kernel with '--fix-cortex-a53-843419' and -- 2.20.1