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>
This commit is contained in:
@@ -45,6 +45,8 @@ def get_symbols(elf_file):
|
||||
continue
|
||||
addr = int(addr, 16)
|
||||
size = int(size, 16)
|
||||
if size == 0:
|
||||
continue
|
||||
symbols.append(Symbol(name, addr, size))
|
||||
symbols.sort(key = lambda x: x.addr)
|
||||
return symbols
|
||||
|
||||
Reference in New Issue
Block a user