1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-27 13:31:16 +02:00

binman: Support writing symbols into ELF files

In some cases the ELF version of SPL builds may be packaged, rather
than a binary .bin file. Add support for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-10-20 18:22:47 -06:00
committed by Tom Rini
parent 3fbba5568c
commit d2afb9edce
8 changed files with 151 additions and 12 deletions

View File

@@ -656,7 +656,10 @@ class Entry(object):
section: Section containing the entry
"""
if self.auto_write_symbols:
elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage())
# Check if we are writing symbols into an ELF file
is_elf = self.GetDefaultFilename() == self.elf_fname
elf.LookupAndWriteSymbols(self.elf_fname, self, section.GetImage(),
is_elf)
def CheckEntries(self):
"""Check that the entry offsets are correct