contrib/plugins/uftrace_symbols.py: ignore zero sized symbols
When using llvm-addr2line in replacement of addr2line, it will output zero sized symbols, which can shadow other binaries depending on where their location is (happens with arm-trusted-firmware and its different binaries). Thus, ignore those symbols. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260306051553.2778652-1-pierrick.bouvier@linaro.org Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Pierrick Bouvier committed
Mar 5, 2026 at 21:15 UTC
ca144c21dd27da2d8aefa3e964ea5f98ec49cfdb
1 file changed
+2
contrib/plugins/uftrace_symbols.py
+2
@@ -45,6 +45,8 @@ def get_symbols(elf_file):
45
continue
46
addr = int(addr, 16)
47
size = int(size, 16)
48
+ if size == 0:
49
+ continue
50
symbols.append(Symbol(name, addr, size))
51
symbols.sort(key = lambda x: x.addr)
52
return symbols