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.
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
contrib/plugins/uftrace_symbols.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/contrib/plugins/uftrace_symbols.py b/contrib/plugins/uftrace_symbols.py
index 21704541a6c..7d79b81cdec 100755
--- a/contrib/plugins/uftrace_symbols.py
+++ b/contrib/plugins/uftrace_symbols.py
@@ -59,6 +59,9 @@ def find_symbols_locations(elf_file, symbols):
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]
--
2.47.3