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>
This commit is contained in:
Simon Glass 2019-09-25 08:56:22 -06:00 committed by Bin Meng
parent 2d553c006d
commit 0b7ebee38e

View File

@ -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):