Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156244
b: refs/heads/master
c: bd171d5
h: refs/heads/master
v: v3
  • Loading branch information
Matt Fleming authored and Steven Rostedt committed Jul 23, 2009
1 parent 844a0ca commit f3ffbb8
Show file tree
Hide file tree
Showing 2 changed files with 3 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: fc4c73554c9d93b3e495f2f7acae1323b0d5db84
refs/heads/master: bd171d5ffc5cb2ba471e8205c679ee9d12b90116
3 changes: 2 additions & 1 deletion trunk/scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ sub update_funcs
# section found, now is this a start of a function?
} elsif ($read_function && /$function_regex/) {
$text_found = 1;
$offset = hex $1;
$text = $2;

# if this is either a local function or a weak function
Expand All @@ -412,10 +411,12 @@ sub update_funcs
if (!defined($locals{$text}) && !defined($weak{$text})) {
$ref_func = $text;
$read_function = 0;
$offset = hex $1;
} else {
# if we already have a function, and this is weak, skip it
if (!defined($ref_func) && !defined($weak{$text})) {
$ref_func = $text;
$offset = hex $1;
}
}
} elsif ($read_headers && /$mcount_section/) {
Expand Down

0 comments on commit f3ffbb8

Please sign in to comment.