[PATCH v5 12/20] binman: Correct handling of zero bss size

Simon Glass sjg at chromium.org
Sun Jul 23 15:23:37 CEST 2023


Fix the check for the __bss_size symbol, since it may be 0. Unfortunately
there was no test coverage for this.

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

(no changes since v1)

 tools/binman/elf_test.py                 |  5 +++++
 tools/binman/etype/u_boot_spl_bss_pad.py |  2 +-
 tools/binman/etype/u_boot_tpl_bss_pad.py |  2 +-
 tools/binman/etype/u_boot_vpl_bss_pad.py |  2 +-
 tools/binman/ftest.py                    | 12 ++++++++++++
 tools/binman/test/285_spl_expand.dts     | 13 +++++++++++++
 tools/binman/test/Makefile               |  5 ++++-
 tools/binman/test/bss_data_zero.c        | 16 ++++++++++++++++
 tools/binman/test/bss_data_zero.lds      | 15 +++++++++++++++
 tools/binman/test/embed_data.lds         |  1 +
 10 files changed, 69 insertions(+), 4 deletions(-)
 create mode 100644 tools/binman/test/285_spl_expand.dts
 create mode 100644 tools/binman/test/bss_data_zero.c
 create mode 100644 tools/binman/test/bss_data_zero.lds

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list