This was found when tracing Hafnium and SLOF binaries, and it's probably
related to a bug in toolchain used. It's safe to ignore those entries,
and related symbols will still be present in output, whether they can be
found or not.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20260218172356.938236-1-pierrick.bouvier@linaro.org
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
print(e.output)
raise
out = out.strip().split('\n')
+ # filter out some addr2line error messages
+ skip_err='addr2line: DWARF error: mangled line number section (bad file number)'
+ out = [src for src in out if src != skip_err]
assert len(out) == len(symbols)
for i in range(len(symbols)):
s = symbols[i]