binman: arm: Include the binman symbol table
authorSimon Glass <sjg@chromium.org>
Tue, 14 Nov 2017 01:55:02 +0000 (18:55 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 13 Dec 2017 02:53:45 +0000 (19:53 -0700)
This area of the image contains symbols whose values are filled in by
binman. If this feature is not used, the table is empty.

Add this to the ARM SPL link script.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/config.mk
arch/arm/cpu/u-boot-spl.lds

index 02f61fcc3cba247fce802f55b9398d1af6496ae4..9c213b897cd5fd7981a6f0103ec605718075c26a 100644 (file)
@@ -136,10 +136,12 @@ endif
 # limit ourselves to the sections we want in the .bin.
 ifdef CONFIG_ARM64
 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .data \
-               -j .u_boot_list -j .rela.dyn -j .got -j .got.plt
+               -j .u_boot_list -j .rela.dyn -j .got -j .got.plt \
+               -j .binman_sym_table
 else
 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
-               -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn
+               -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn \
+               -j .binman_sym_table
 endif
 
 # if a dtb section exists we always have to include it
index 068163b73a65986dbd3ac48fc325be1370c2748e..65f7b68861e28b201d47f8565815c283a3279f7b 100644 (file)
@@ -36,6 +36,13 @@ SECTIONS
                KEEP(*(SORT(.u_boot_list*)));
        }
 
+       . = ALIGN(4);
+       .binman_sym_table : {
+               __binman_sym_start = .;
+               KEEP(*(SORT(.binman_sym*)));
+               __binman_sym_end = .;
+       }
+
        . = ALIGN(4);
 
        __image_copy_end = .;