git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mwl8k: get rid of mwl8k_configure_filter() workqueue use
[pandora-kernel.git]
/
scripts
/
recordmcount.pl
diff --git
a/scripts/recordmcount.pl
b/scripts/recordmcount.pl
index
d29baa2
..
911ba7f
100755
(executable)
--- a/
scripts/recordmcount.pl
+++ b/
scripts/recordmcount.pl
@@
-393,7
+393,7
@@
while (<IN>) {
$read_function = 0;
}
# print out any recorded offsets
$read_function = 0;
}
# print out any recorded offsets
- update_funcs() if (
$text_found
);
+ update_funcs() if (
defined($ref_func)
);
# reset all markers and arrays
$text_found = 0;
# reset all markers and arrays
$text_found = 0;
@@
-414,7
+414,10
@@
while (<IN>) {
$offset = hex $1;
} else {
# if we already have a function, and this is weak, skip it
$offset = hex $1;
} else {
# if we already have a function, and this is weak, skip it
- if (!defined($ref_func) && !defined($weak{$text})) {
+ if (!defined($ref_func) && !defined($weak{$text}) &&
+ # PPC64 can have symbols that start with .L and
+ # gcc considers these special. Don't use them!
+ $text !~ /^\.L/) {
$ref_func = $text;
$offset = hex $1;
}
$ref_func = $text;
$offset = hex $1;
}
@@
-441,7
+444,7
@@
while (<IN>) {
}
# dump out anymore offsets that may have been found
}
# dump out anymore offsets that may have been found
-update_funcs() if (
$text_found
);
+update_funcs() if (
defined($ref_func)
);
# If we did not find any mcount callers, we are done (do nothing).
if (!$opened) {
# If we did not find any mcount callers, we are done (do nothing).
if (!$opened) {