|
@@ -1079,6 +1079,16 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name,
|
|
|
if (!is_label && !elf_sym__is_a(&sym, map->type))
|
|
|
continue;
|
|
|
|
|
|
+ /* Reject ARM ELF "mapping symbols": these aren't unique and
|
|
|
+ * don't identify functions, so will confuse the profile
|
|
|
+ * output: */
|
|
|
+ if (ehdr.e_machine == EM_ARM) {
|
|
|
+ if (!strcmp(elf_name, "$a") ||
|
|
|
+ !strcmp(elf_name, "$d") ||
|
|
|
+ !strcmp(elf_name, "$t"))
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
if (opdsec && sym.st_shndx == opdidx) {
|
|
|
u32 offset = sym.st_value - opdshdr.sh_addr;
|
|
|
u64 *opd = opddata->d_buf + offset;
|