scripts: Prefer objdump --syms over -t in scripts

objdump --syms is a bit more self-documenting.

The other uses of objdump already use the long forms (--dwarf=rawline,
--dwarf=info).
This commit is contained in:
Christopher Haster
2024-12-04 16:26:54 -06:00
parent 308b4b6080
commit bd7004a4f3
5 changed files with 5 additions and 5 deletions

View File

@@ -228,7 +228,7 @@ def collect_syms(obj_path, sections=None, global_=False, *,
# find symbol addresses and sizes
syms = []
cmd = objdump_path + ['-t', obj_path]
cmd = objdump_path + ['--syms', obj_path]
if args.get('verbose'):
print(' '.join(shlex.quote(c) for c in cmd))
proc = sp.Popen(cmd,