diff --git a/[refs] b/[refs] index 98d5d188461e..2aa5777724cc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fc4c73554c9d93b3e495f2f7acae1323b0d5db84 +refs/heads/master: bd171d5ffc5cb2ba471e8205c679ee9d12b90116 diff --git a/trunk/scripts/recordmcount.pl b/trunk/scripts/recordmcount.pl index 16c5563b4129..d29baa2e063a 100755 --- a/trunk/scripts/recordmcount.pl +++ b/trunk/scripts/recordmcount.pl @@ -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 @@ -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/) {