x86: Add binman symbols to the image
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:36 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:35 +0000 (13:57 +0800)
It is useful in SPL and TPL to access symbols from binman, such as the
position and size of an entry in the ROM. Collect these symbols together
in the SPL binaries.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/u-boot-spl.lds

index f20c0b8..c1e9bfb 100644 (file)
@@ -35,6 +35,12 @@ SECTIONS
        . = ALIGN(4);
        __data_end = .;
        __init_end = .;
+       . = ALIGN(4);
+       .binman_sym_table : {
+               __binman_sym_start = .;
+               KEEP(*(SORT(.binman_sym*)));
+               __binman_sym_end = .;
+       }
 
         _image_binary_end = .;