diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/recordmcount.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index 54e35c1e5948..9d1421e63ff8 100644 --- a/scripts/recordmcount.h +++ b/scripts/recordmcount.h | |||
@@ -261,11 +261,13 @@ static unsigned get_mcountsym(Elf_Sym const *const sym0, | |||
261 | &sym0[Elf_r_sym(relp)]; | 261 | &sym0[Elf_r_sym(relp)]; |
262 | char const *symname = &str0[w(symp->st_name)]; | 262 | char const *symname = &str0[w(symp->st_name)]; |
263 | char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; | 263 | char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; |
264 | char const *fentry = "__fentry__"; | ||
264 | 265 | ||
265 | if (symname[0] == '.') | 266 | if (symname[0] == '.') |
266 | ++symname; /* ppc64 hack */ | 267 | ++symname; /* ppc64 hack */ |
267 | if (strcmp(mcount, symname) == 0 || | 268 | if (strcmp(mcount, symname) == 0 || |
268 | (altmcount && strcmp(altmcount, symname) == 0)) | 269 | (altmcount && strcmp(altmcount, symname) == 0) || |
270 | (strcmp(fentry, symname) == 0)) | ||
269 | mcountsym = Elf_r_sym(relp); | 271 | mcountsym = Elf_r_sym(relp); |
270 | 272 | ||
271 | return mcountsym; | 273 | return mcountsym; |