From: Simon Glass Date: Sat, 24 Aug 2019 13:22:46 +0000 (-0600) Subject: binman: Handle hidden symbols in ELF files X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=39c8e47d2ee38975b9377ee0049d2f88efc3edba;p=u-boot.git binman: Handle hidden symbols in ELF files Some versions of binutils generate hidden symbols which are currently not parsed by binman. Correct this. Signed-off-by: Simon Glass --- diff --git a/tools/binman/elf.py b/tools/binman/elf.py index c7ef74ce7d..66cfe796a2 100644 --- a/tools/binman/elf.py +++ b/tools/binman/elf.py @@ -72,7 +72,7 @@ def GetSymbols(fname, patterns): parts = rest[7:].split() section, size = parts[:2] if len(parts) > 2: - name = parts[2] + name = parts[2] if parts[2] != '.hidden' else parts[3] syms[name] = Symbol(section, int(value, 16), int(size,16), flags[1] == 'w')