]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
armv8: u-boot-spl.lds: Place binman symbols at end of binary
authorJonas Karlman <jonas@kwiboo.se>
Thu, 22 Jan 2026 17:20:54 +0000 (17:20 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jan 2026 20:41:21 +0000 (14:41 -0600)
It can be useful in xPL to access symbols from binman, such as the
offset/position and size of a binman entry.

Place these binman symbols together at the end of the xPL binary for
ARMv8, similar to ARM and RISC-V.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
arch/arm/cpu/armv8/u-boot-spl.lds

index d9963846c4f46fdfe78196efcf167e842013de91..b732133ce76d967bd646c0e3002191b2494d8bb9 100644 (file)
@@ -55,6 +55,14 @@ SECTIONS
                . = ALIGN(8);
        } >.sram
 
+       .binman_sym_table : {
+               . = ALIGN(8);
+               __binman_sym_start = .;
+               KEEP(*(SORT(.binman_sym*)));
+               __binman_sym_end = .;
+               . = ALIGN(8);
+       } > .sram
+
        __image_copy_end = .;
        _end = .;
        _image_binary_end = .;