ANDROID: arm64: disable ARM64_ERRATUM_843419 for clang LTO
authorSami Tolvanen <samitolvanen@google.com>
Mon, 29 Jan 2018 19:19:19 +0000 (11:19 -0800)
committerSami Tolvanen <samitolvanen@google.com>
Thu, 26 Apr 2018 23:03:36 +0000 (16:03 -0700)
commit9842120b602d83d52edffbfc0a19632924b6ce14
tree647d80a024e1ad253f7fd8541807d4551b46054a
parent05fc028f049491ece8c53560b68622baf24433e0
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 <samitolvanen@google.com>
arch/arm64/Kconfig