summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:56:22 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:57:44 +0800
commit0b7ebee38e5d9167360bc756fcfb72af8badc74f (patch)
treef58135af8f05a58dad09b9b9eb2b7a60c45a6200 /tools
parent2d553c006d46653f3e0367cc5bfe36a9c7128eb5 (diff)
downloadu-boot-0b7ebee38e5d9167360bc756fcfb72af8badc74f.tar.gz
u-boot-0b7ebee38e5d9167360bc756fcfb72af8badc74f.tar.xz
u-boot-0b7ebee38e5d9167360bc756fcfb72af8badc74f.zip
binman: Take account of skip-at-start with image-header
The image-header currently sets it offset assuming that skip-at-start is zero. This does not work on x86 where offsets end at 4GB. Add in this value so that the offset is correct. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/etype/image_header.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/etype/image_header.py b/tools/binman/etype/image_header.py
index 4b69eda1a2..b9327dd799 100644
--- a/tools/binman/etype/image_header.py
+++ b/tools/binman/etype/image_header.py
@@ -100,6 +100,7 @@ class Entry_image_header(Entry):
offset = offset
else:
offset = image_size - IMAGE_HEADER_LEN
+ offset += self.section.GetStartOffset()
return Entry.Pack(self, offset)
def ProcessContents(self):