diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-05-20 14:24:20 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-24 21:21:30 +0300 |
commit | 37de198fa25b4bd31c69d14bad4fa6904685836d (patch) | |
tree | 94ee9437293516a0683cb439e2032f2d3aa72597 /arch/arm/cpu | |
parent | baa977bd0f63c48ffd57c65f052d5a6c8f6f0fc1 (diff) | |
download | u-boot-37de198fa25b4bd31c69d14bad4fa6904685836d.tar.xz |
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/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv8/u-boot-spl.lds | 1 |
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 0e67ab09d7..9edb662b09 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*) } |