diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-24 07:23:12 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-15 08:40:02 -0600 |
commit | 261cbe0b3716737e328481b6f3f51cfcb7f13e31 (patch) | |
tree | 5744bd7a7cdeaf5330887e2b2169d18239c59402 /tools | |
parent | ed9571d269e814975c0626f92e6f322343178edf (diff) | |
download | u-boot-261cbe0b3716737e328481b6f3f51cfcb7f13e31.zip u-boot-261cbe0b3716737e328481b6f3f51cfcb7f13e31.tar.gz u-boot-261cbe0b3716737e328481b6f3f51cfcb7f13e31.tar.bz2 |
binman: Write symbol info before image inclusion
At present the symbol information is written to binaries just before
binman exits. This is fine for entries within sections since the section
contents is calculated when it is needed, so the updated symbol values are
included in the image that is written.
However some binaries are inside entries which have already generated
their contents and do not notice that the entries have changed (e.g. Intel
IFWI).
Move the symbol writing earlier to cope with this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/binman/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index 8268eda..fe24b2a 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -437,6 +437,7 @@ def ProcessImage(image, update_fdt, write_map, get_contents=True, for dtb_item in state.GetAllFdts(): dtb_item.Sync() dtb_item.Flush() + image.WriteSymbols() sizes_ok = image.ProcessEntryContents() if sizes_ok: break @@ -445,7 +446,6 @@ def ProcessImage(image, update_fdt, write_map, get_contents=True, image.Raise('Entries changed size after packing (tried %s passes)' % passes) - image.WriteSymbols() image.BuildImage() if write_map: image.WriteMap() |