lkml.org 
[lkml]   [2017]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/15] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold
    Date
    Some versions of GNU gold are known to produce broken code with
    --fix-cortex-a53-843419 as explained in this bug:

    https://sourceware.org/bugzilla/show_bug.cgi?id=21491

    If ARM64_ERRATUM_843419 is disabled and we're using GNU gold, pass
    --no-fix-cortex-a53-843419 to the linker to ensure the erratum fix is not
    used even if the linker is configured to enable it by default.

    Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
    ---
    arch/arm64/Makefile | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
    index c16bd1ab37f8..0c1fb297c98e 100644
    --- a/arch/arm64/Makefile
    +++ b/arch/arm64/Makefile
    @@ -26,6 +26,11 @@ 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
    +
    KBUILD_DEFCONFIG := defconfig

    # Check for binutils support for specific extensions
    --
    2.15.0.403.gc27cc4dac6-goog
    \
     
     \ /
      Last update: 2017-11-03 18:13    [W:4.018 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site