Re: [PATCH 6/7] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold
From: Nick Desaulniers
Date: Wed Nov 29 2017 - 19:30:40 EST
On Wed, Nov 29, 2017 at 3:44 PM, Sami Tolvanen <samitolvanen@xxxxxxxxxx> wrote:
> @@ -26,10 +26,19 @@ 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
> endif
>
> +ifeq ($(CONFIG_ARM64_ERRATUM_843419),)
> +# https://sourceware.org/bugzilla/show_bug.cgi?id=21491
> +LDFLAGS_GOLD += --no-fix-cortex-a53-843419
> +endif
> +
Rather than:
if CONFIG_ARM64_ERRATUM_843419 == y:
...
if CONFIG_ARM64_ERRATUM_843419 == '':
...
could this be:
if CONFIG_ARM64_ERRATUM_843419 == y:
...
else
...
?