aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-12-29 11:20:37 +0000
committerIan Lance Taylor <ian@airs.com>1997-12-29 11:20:37 +0000
commita3da1edc5e28f55a64c840dcb696f095c8a8024f (patch)
tree418b1ae86ec636c9a54cc6046f29ff22b8bffb47
parent5a08c6a17e7e530cd6ae0e51d0562945deb37c48 (diff)
downloadgdb-a3da1edc5e28f55a64c840dcb696f095c8a8024f.zip
gdb-a3da1edc5e28f55a64c840dcb696f095c8a8024f.tar.gz
gdb-a3da1edc5e28f55a64c840dcb696f095c8a8024f.tar.bz2
* core.c (core_sym_class): Treat weak symbols as text symbols.
From Dean Gaudet <dgaudet@arctic.org>.
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/core.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 8f12bf1..e10ee4f 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+Mon Dec 29 14:17:08 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * core.c (core_sym_class): Treat weak symbols as text symbols.
+ From Dean Gaudet <dgaudet@arctic.org>.
+
Wed Sep 24 11:35:43 1997 Ian Lance Taylor <ian@cygnus.com>
* aclocal.m4: Rebuild with new libtool.
diff --git a/gprof/core.c b/gprof/core.c
index 3103dc2..e390b1e 100644
--- 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 */