diff options
| -rw-r--r-- | arch/arm64/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index d94274a058dc..295008d86e6d 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -23,8 +23,17 @@ ifeq ($(CONFIG_ARM64_ERRATUM_843419),y) ifeq ($(call ld-option, --fix-cortex-a53-843419),) $(warning ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum) else + ifeq ($(call gold-ifversion, -lt, 114000000, y), y) +$(warning This version of GNU gold may generate incorrect code with --fix-cortex-a53-843419;\ + see https://sourceware.org/bugzilla/show_bug.cgi?id=21491) + endif LDFLAGS_vmlinux += --fix-cortex-a53-843419 endif +else + ifeq ($(ld-name),gold) +# Pass --no-fix-cortex-a53-843419 to ensure the erratum fix is disabled +LDFLAGS += --no-fix-cortex-a53-843419 + endif endif KBUILD_DEFCONFIG := defconfig |
