mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 13:01:17 +02:00
binman: Use tools.Run() to run objdump
At present this command silently fails if something goes wrong. Use the tools.Run() function instead, since it reports errors. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -49,7 +49,7 @@ def GetSymbols(fname, patterns):
|
|||||||
key: Name of symbol
|
key: Name of symbol
|
||||||
value: Hex value of symbol
|
value: Hex value of symbol
|
||||||
"""
|
"""
|
||||||
stdout = command.Output('objdump', '-t', fname, raise_on_error=False)
|
stdout = tools.Run('objdump', '-t', fname)
|
||||||
lines = stdout.splitlines()
|
lines = stdout.splitlines()
|
||||||
if patterns:
|
if patterns:
|
||||||
re_syms = re.compile('|'.join(patterns))
|
re_syms = re.compile('|'.join(patterns))
|
||||||
|
Reference in New Issue
Block a user