@@ -859,7 +859,10 @@ int dso__load_sym(struct dso *dso, struct map *map,
if (ehdr.e_machine == EM_ARM) {
if (!strcmp(elf_name, "$a") ||
!strcmp(elf_name, "$d") ||
- !strcmp(elf_name, "$t"))
+ !strcmp(elf_name, "$t") ||
+ !strncmp(elf_name, "$a.", 3) ||
+ !strncmp(elf_name, "$d.", 3) ||
+ !strncmp(elf_name, "$t.", 3))
continue;
}
/* Reject Aarch64 ELF "mapping symbols": these aren't unique and
@@ -867,7 +870,9 @@ int dso__load_sym(struct dso *dso, struct map *map,
* output: */
if (ehdr.e_machine == EM_AARCH64) {
if (!strcmp(elf_name, "$x") ||
- !strcmp(elf_name, "$d"))
+ !strcmp(elf_name, "$d") ||
+ !strncmp(elf_name, "$x.", 3) ||
+ !strncmp(elf_name, "$d.", 3))
continue;
}