[PATCH v3 17/21] objtool/klp: Don't correlate arm64 mapping symbols
Josh Poimboeuf
jpoimboe at kernel.org
Tue May 12 20:34:13 PDT 2026
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 at kernel.org>
---
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
More information about the linux-arm-kernel
mailing list