diff options
-rw-r--r-- | gprof/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/core.c | 7 |
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 */ |