From: Sami Tolvanen Date: Mon, 29 Jan 2018 19:19:19 +0000 (-0800) Subject: ANDROID: arm64: disable ARM64_ERRATUM_843419 for clang LTO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9842120b602d83d52edffbfc0a19632924b6ce14;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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