[PATCH 8/8] binman: Support positioning an entry by and ELF symbol

Simon Glass sjg at chromium.org
Thu Jan 19 03:11:28 CET 2023


In some cases it is useful to position an entry over the top of a symbol
in an ELF file. For example, if the symbol holds a version string then it
allows the string to be accessed from the fdtmap.

Add support for this.

Suggested-by: Pali Rohár <pali at kernel.org>
Suggested-by: Keith Short <keithshort at chromium.org>
Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/binman.rst                   |  7 ++++++
 tools/binman/elf.py                       | 23 +++++++++++++++++
 tools/binman/entry.py                     | 19 +++++++++++++-
 tools/binman/ftest.py                     | 28 +++++++++++++++++++++
 tools/binman/test/274_offset_from_elf.dts | 30 +++++++++++++++++++++++
 5 files changed, 106 insertions(+), 1 deletion(-)
 create mode 100644 tools/binman/test/274_offset_from_elf.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list