aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/symbol-elf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c
index b24f9d8727a8..225eb73ee78b 100644
--- a/tools/perf/util/symbol-elf.c
+++ b/tools/perf/util/symbol-elf.c
@@ -859,10 +859,9 @@ int dso__load_sym(struct dso *dso, struct map *map,
859 /* Reject ARM ELF "mapping symbols": these aren't unique and 859 /* Reject ARM ELF "mapping symbols": these aren't unique and
860 * don't identify functions, so will confuse the profile 860 * don't identify functions, so will confuse the profile
861 * output: */ 861 * output: */
862 if (ehdr.e_machine == EM_ARM) { 862 if (ehdr.e_machine == EM_ARM || ehdr.e_machine == EM_AARCH64) {
863 if (!strcmp(elf_name, "$a") || 863 if (elf_name[0] == '$' && strchr("adtx", elf_name[1])
864 !strcmp(elf_name, "$d") || 864 && (elf_name[2] == '\0' || elf_name[2] == '.'))
865 !strcmp(elf_name, "$t"))
866 continue; 865 continue;
867 } 866 }
868 867