[PATCH 06/10] binman: Support finding symbols in sub-sections

Simon Glass sjg at chromium.org
Sat Jan 23 18:27:06 CET 2021


At present binman only supports resolving symbols in the same section as
the binary that uses it. This is quite limited because we often need to
group entries into different sections.

Enhance the algorithm to search the entire image for symbols.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/elf.py                   |  3 +-
 tools/binman/elf_test.py              |  4 ++-
 tools/binman/etype/section.py         | 41 +++++++++++++++++++++---
 tools/binman/ftest.py                 | 15 +++++++++
 tools/binman/image.py                 | 45 +++++++++++++++++++++++++++
 tools/binman/test/187_symbols_sub.dts | 22 +++++++++++++
 6 files changed, 123 insertions(+), 7 deletions(-)
 create mode 100644 tools/binman/test/187_symbols_sub.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list