projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* core.c (core_sym_class): Treat weak symbols as text symbols.
[external/binutils.git]
/
gprof
/
core.c
diff --git
a/gprof/core.c
b/gprof/core.c
index
3103dc2
..
e390b1e
100644
(file)
--- a/
gprof/core.c
+++ b/
gprof/core.c
@@
-231,6
+231,13
@@
DEFUN (core_sym_class, (sym), asymbol * sym)
return i; /* it's a global symbol */
}
+ if (i == 'W')
+ {
+ /* Treat weak symbols as text symbols. FIXME: a weak symbol may
+ also be a data symbol. */
+ return 'T';
+ }
+
if (i != 't')
{
/* not a static text symbol */