diff options
author | Simon Glass <sjg@chromium.org> | 2022-01-23 12:55:46 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-25 14:02:38 -0700 |
commit | 61a631e912dc651f4c6e93b6d1504de68de1ecaf (patch) | |
tree | badb141e2a4aba5fb215a0d391fb43e2e774d056 | |
parent | 8e72374feb08110e407e008b6d4a158158f9fcf1 (diff) |
binman: Document the __bss_size symbol error
Add a note about the message so it is clear why it occurs.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | tools/binman/binman.rst | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index db2234bd8ff..eb2c9d4bdcc 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst @@ -1232,6 +1232,35 @@ To enable Python test coverage on Debian-type distributions (e.g. Ubuntu):: $ sudo apt-get install python-coverage python3-coverage python-pytest +Error messages +-------------- + +This section provides some guidance for some of the less obvious error messages +produced by binman. + + +Expected __bss_size symbol +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Example:: + + binman: Node '/binman/u-boot-spl-ddr/u-boot-spl/u-boot-spl-bss-pad': + Expected __bss_size symbol in spl/u-boot-spl + +This indicates that binman needs the `__bss_size` symbol to be defined in the +SPL binary, where `spl/u-boot-spl` is the ELF file containing the symbols. The +symbol tells binman the size of the BSS region, in bytes. It needs this to be +able to pad the image so that the following entries do not overlap the BSS, +which would cause them to be overwritte by variable access in SPL. + +This symbols is normally defined in the linker script, immediately after +_bss_start and __bss_end are defined, like this:: + + __bss_size = __bss_end - __bss_start; + +You may need to add it to your linker script if you get this error. + + Concurrent tests ---------------- |