From: Pierrick Bouvier Date: Fri, 6 Mar 2026 05:15:53 +0000 (-0800) Subject: contrib/plugins/uftrace_symbols.py: ignore zero sized symbols X-Git-Tag: v11.0.0-rc0~30^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca144c21dd27da2d8aefa3e964ea5f98ec49cfdb;p=thirdparty%2Fqemu.git 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 Link: https://lore.kernel.org/qemu-devel/20260306051553.2778652-1-pierrick.bouvier@linaro.org Signed-off-by: Pierrick Bouvier --- diff --git a/contrib/plugins/uftrace_symbols.py b/contrib/plugins/uftrace_symbols.py index 7d79b81cdec..02d1221228c 100755 --- a/contrib/plugins/uftrace_symbols.py +++ b/contrib/plugins/uftrace_symbols.py @@ -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