From a3da1edc5e28f55a64c840dcb696f095c8a8024f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 29 Dec 1997 11:20:37 +0000 Subject: [PATCH] * core.c (core_sym_class): Treat weak symbols as text symbols. From Dean Gaudet . --- gprof/ChangeLog | 5 +++++ gprof/core.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 8f12bf1fbca..e10ee4f752c 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 29 14:17:08 1997 Ian Lance Taylor + + * core.c (core_sym_class): Treat weak symbols as text symbols. + From Dean Gaudet . + Wed Sep 24 11:35:43 1997 Ian Lance Taylor * aclocal.m4: Rebuild with new libtool. diff --git a/gprof/core.c b/gprof/core.c index 3103dc281fc..e390b1e299a 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 */ -- 2.30.2