Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323718
b: refs/heads/master
c: 48bb5dc
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Aug 23, 2012
1 parent 748881e commit 271d22a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0e0fac633bed47c15cab744663d8c67f8f3421d
refs/heads/master: 48bb5dc6cd9d30fe0d594947563da1f8bd9abada
4 changes: 3 additions & 1 deletion trunk/scripts/recordmcount.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 271d22a

Please sign in to comment.