1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Remove spurious ARM symbols from lookup table.

MFC after:	3 days
This commit is contained in:
Fabien Thomas 2012-06-06 08:58:31 +00:00
parent 5d53fe3984
commit d13b0c3f27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236669

View File

@ -554,6 +554,14 @@ pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e,
if ((fnname = elf_strptr(e, sh->sh_link, sym.st_name))
== NULL)
continue;
#ifdef __arm__
/* Remove spurious ARM function name. */
if (fnname[0] == '$' &&
(fnname[1] == 'a' || fnname[1] == 't' ||
fnname[1] == 'd') &&
fnname[2] == '\0')
continue;
#endif
symptr->ps_name = pmcstat_string_intern(fnname);
symptr->ps_start = sym.st_value - image->pi_vaddr;