arm64: errata: Pass --fix-cortex-a53-843419 to ld if workaround enabled
authorWill Deacon <will.deacon@arm.com>
Mon, 22 Aug 2016 10:58:36 +0000 (11:58 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 26 Aug 2016 10:33:22 +0000 (11:33 +0100)
commit6ffe9923f2350c19b95a2c9ebf1b4f5f275986f2
treeab5298c631fa96353509174ea1fe883bf0a66310
parentb2d8b0cb6ca9cb81dd71626642f764ac70d10813
arm64: errata: Pass --fix-cortex-a53-843419 to ld if workaround enabled

Cortex-A53 erratum 843419 is worked around by the linker, although it is
a configure-time option to GCC as to whether ld is actually asked to
apply the workaround or not.

This patch ensures that we pass --fix-cortex-a53-843419 to the linker
when both CONFIG_ARM64_ERRATUM_843419=y and the linker supports the
option.

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/Kconfig
arch/arm64/Makefile