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 <[email protected]>
---
 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 922de4c8e9e89..d76d2f5b5acbf 100644
--- a/tools/objtool/klp-diff.c
+++ b/tools/objtool/klp-diff.c
@@ -547,6 +547,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.54.0


Reply via email to