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:
parent
2d553c006d
commit
0b7ebee38e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user