[PATCH v3 17/21] objtool/klp: Don't correlate arm64 mapping symbols

From: Josh Poimboeuf

Date: Tue May 12 2026 - 23:36:09 EST


ARM64 ELF files contain mapping symbols ($d, $x, $a, etc.) which mark
transitions between code and data. There are thousands of them per
object file, all sharing the same few names.

They aren't "real" symbols so there's no need to correlate them.

Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
tools/objtool/klp-diff.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c
index eb21f3bf3120b..e1d4d94c9d77c 100644
--- a/tools/objtool/klp-diff.c
+++ b/tools/objtool/klp-diff.c
@@ -501,6 +501,7 @@ static bool dont_correlate(struct symbol *sym)
is_prefix_func(sym) ||
is_uncorrelated_static_local(sym) ||
is_local_label(sym) ||
+ is_mapping_sym(sym) ||
is_string_sec(sym->sec) ||
is_anonymous_rodata(sym) ||
is_initcall_sym(sym) ||
--
2.53.0