summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-24 07:22:52 -0600
committerSimon Glass <sjg@chromium.org>2019-10-15 08:40:02 -0600
commit180f556b090c2e3c84c904d3e6bc884acb423e1f (patch)
tree1ce3f3777754b3eafc2de23e327f4dc170487ebc
parente95be637c47463f771998fe7b890daec032dcb8e (diff)
downloadu-boot-180f556b090c2e3c84c904d3e6bc884acb423e1f.tar.gz
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>
-rw-r--r--tools/binman/elf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/elf.py b/tools/binman/elf.py
index 66cfe796a2..7bc7cf61b5 100644
--- a/tools/binman/elf.py
+++ b/tools/binman/elf.py
@@ -49,7 +49,7 @@ def GetSymbols(fname, patterns):
key: Name 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()
if patterns:
re_syms = re.compile('|'.join(patterns))