]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: SPL: discard relocation information
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:20 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
For some reason when building SPL for ARMv8 with LTO, the relocation
information is not discarded.

Discard it explicitly in the linker script.

This fixes LTO build for imx8mm_venice_defconfig.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv8/u-boot-spl.lds

index 0e67ab09d77aee609059ad7eca00f4f1ae3ec11f..9edb662b094a7742a285d180b6e95a9478efac8a 100644 (file)
@@ -77,6 +77,7 @@ SECTIONS
                KEEP(*(.__bss_end));
        } >.sdram
 
+       /DISCARD/ : { *(.rela*) }
        /DISCARD/ : { *(.dynsym) }
        /DISCARD/ : { *(.dynstr*) }
        /DISCARD/ : { *(.dynamic*) }