[PATCH v2] armv8: u-boot-spl.lds: Place binman symbols at end of binary
Peng Fan
peng.fan at oss.nxp.com
Mon Jan 26 03:13:27 CET 2026
Hi Jonas,
On Thu, Jan 22, 2026 at 05:20:54PM +0000, Jonas Karlman wrote:
>It can be useful in xPL to access symbols from binman, such as the
>offset/position and size of a binman entry.
Would you please disclose more details? What it will be used for?
Thanks,
Peng
>
>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 at kwiboo.se>
>---
>v2: Rebase on master after "arm: Update linker scripts to ensure
> appended device tree is aligned".
>---
> arch/arm/cpu/armv8/u-boot-spl.lds | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
>diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds
>index d9963846c4f4..b732133ce76d 100644
>--- a/arch/arm/cpu/armv8/u-boot-spl.lds
>+++ b/arch/arm/cpu/armv8/u-boot-spl.lds
>@@ -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 = .;
>--
>2.52.0
>
More information about the U-Boot
mailing list