From: Marek BehĂșn Date: Thu, 20 May 2021 11:24:20 +0000 (+0200) Subject: armv8: SPL: discard relocation information X-Git-Tag: v2021.10~172^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37de198fa25b4bd31c69d14bad4fa6904685836d;p=platform%2Fkernel%2Fu-boot.git armv8: SPL: discard relocation information 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 Reviewed-by: Simon Glass --- diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds index 0e67ab0..9edb662 100644 --- a/arch/arm/cpu/armv8/u-boot-spl.lds +++ b/arch/arm/cpu/armv8/u-boot-spl.lds @@ -77,6 +77,7 @@ SECTIONS KEEP(*(.__bss_end)); } >.sdram + /DISCARD/ : { *(.rela*) } /DISCARD/ : { *(.dynsym) } /DISCARD/ : { *(.dynstr*) } /DISCARD/ : { *(.dynamic*) }