]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: elf: Add more debugging to LookupAndWriteSymbols()
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2024 10:49:36 +0000 (11:49 +0100)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2024 14:42:18 +0000 (08:42 -0600)
When symbol-writing does not appear to work, it can sometimes be hard to
figure out what is going on. Add some more debugging to help.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/elf.py

index 2ecc95f7eb86db930383d0d25b68d3cc0944b562..a469405639146152d51432dc356cd7a40139e494 100644 (file)
@@ -275,7 +275,7 @@ def LookupAndWriteSymbols(elf_fname, entry, section, is_elf=False,
         return 0
     base = syms.get(base_sym)
     if not base and not is_elf:
-        tout.debug('LookupAndWriteSymbols: no base')
+        tout.debug(f'LookupAndWriteSymbols: no base: elf_fname={elf_fname}, base_sym={base_sym}, is_elf={is_elf}')
         return 0
     base_addr = 0 if is_elf else base.address
     count = 0