]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Provide general support for updating ELF symbols
authorSimon Glass <sjg@chromium.org>
Wed, 11 Jan 2023 23:10:17 +0000 (16:10 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 18 Jan 2023 21:55:41 +0000 (14:55 -0700)
commitc1157860c5e9ca45e41859e013ed83919e7397f0
treec2b4f1cf8570fcc3e03264e8e105a25674a654e6
parent9766f69c98c2aa056d0518a9545f9e89484e9172
binman: Provide general support for updating ELF symbols

The current support for updating variables in a binary is hard-coded to
work with U-Boot:

- It assumes the image starts at __image_copy_start
- It uses the existing U-Boot-specific entry types

It is useful for other projects to use these feature.

Add properties to enable writing symbols for any blob, a way of specifying
the base symbol and a way of providing the ELF filename to allow symbol
lookup to take place.

With this it is possible to update a Zephyr image, such as zephyr.bin
after it has been built.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/binman.rst
tools/binman/elf.py
tools/binman/entry.py
tools/binman/etype/blob.py
tools/binman/etype/u_boot_spl.py
tools/binman/ftest.py
tools/binman/test/273_blob_symbol.dts [new file with mode: 0644]
tools/binman/test/Makefile
tools/binman/test/blob_syms.c [new file with mode: 0644]
tools/binman/test/blob_syms.lds [new file with mode: 0644]