[PATCH v2 3/4] perf symbol: Set dso symtab type for libbfd

From: Namhyung Kim

Date: Mon Oct 12 2026 - 01:31:55 EST


It missed to set the dso symtab type when the symbols are loaded by
libbfd. When it happens both syms_ss and runtime_ss may not be set
and won't call dso__load_sym().

Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
---
tools/perf/util/symbol.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 55a4b59195a08be5..b63fa3c03f0e732c 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1931,6 +1931,7 @@ int dso__load(struct dso *dso, struct map *map)
nsinfo__mountns_enter(dso__nsinfo(dso), &nsc);

if (bfdrc > 0) {
+ dso__set_symtab_type(dso, symtab_type);
ret = 1;
goto out_destroy;
}
--
2.55.0