[PATCH v2 5/5] perf symbol: Ensure dso__set_is_64_bit() for libbfd
From: Namhyung Kim
Date: Mon Oct 19 2026 - 01:55:39 EST
Otherwise it can confuse cross-platform analysis.
Reported-by: Sashiko <sashiko-bot@xxxxxxxxxx>
Closes: https://lore.kernel.org/r/sashiko-outbox-168776@xxxxxxxxxx
Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
---
tools/perf/util/libbfd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/libbfd.c b/tools/perf/util/libbfd.c
index a4dcb406c79e9cee..45fd70c4f7e11cd7 100644
--- a/tools/perf/util/libbfd.c
+++ b/tools/perf/util/libbfd.c
@@ -462,6 +462,7 @@ int dso__load_bfd_symbols(struct dso *dso, const char *debugfile)
symbols__fixup_end(dso__symbols(dso), false);
symbols__fixup_duplicate(dso__symbols(dso));
dso__set_adjust_symbols(dso, true);
+ dso__set_is_64_bit(dso, bfd_arch_bits_per_address(abfd) == 64);
err = dso__has_symbols(dso);
out_free:
--
2.56.0