From 271d22a7785cc1e47347cafebeff120485501e63 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Wed, 9 Feb 2011 13:13:23 -0500 Subject: [PATCH] --- yaml --- r: 323718 b: refs/heads/master c: 48bb5dc6cd9d30fe0d594947563da1f8bd9abada h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/recordmcount.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f889ef3999e3..a600cfd93d8e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a0e0fac633bed47c15cab744663d8c67f8f3421d +refs/heads/master: 48bb5dc6cd9d30fe0d594947563da1f8bd9abada diff --git a/trunk/scripts/recordmcount.h b/trunk/scripts/recordmcount.h index 54e35c1e5948..9d1421e63ff8 100644 --- a/trunk/scripts/recordmcount.h +++ b/trunk/scripts/recordmcount.h @@ -261,11 +261,13 @@ static unsigned get_mcountsym(Elf_Sym const *const sym0, &sym0[Elf_r_sym(relp)]; char const *symname = &str0[w(symp->st_name)]; char const *mcount = gpfx == '_' ? "_mcount" : "mcount"; + char const *fentry = "__fentry__"; if (symname[0] == '.') ++symname; /* ppc64 hack */ if (strcmp(mcount, symname) == 0 || - (altmcount && strcmp(altmcount, symname) == 0)) + (altmcount && strcmp(altmcount, symname) == 0) || + (strcmp(fentry, symname) == 0)) mcountsym = Elf_r_sym(relp); return mcountsym;