aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-05-20 13:24:20 +0200
committerTom Rini <trini@konsulko.com>2021-05-24 14:21:30 -0400
commit37de198fa25b4bd31c69d14bad4fa6904685836d (patch)
tree94ee9437293516a0683cb439e2032f2d3aa72597 /arch
parentbaa977bd0f63c48ffd57c65f052d5a6c8f6f0fc1 (diff)
downloadu-boot-37de198fa25b4bd31c69d14bad4fa6904685836d.zip
u-boot-37de198fa25b4bd31c69d14bad4fa6904685836d.tar.gz
u-boot-37de198fa25b4bd31c69d14bad4fa6904685836d.tar.bz2
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 <marek.behun@nic.cz> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv8/u-boot-spl.lds1
1 files changed, 1 insertions, 0 deletions
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*) }