From 70ccb43727168afa1934c8dd3d7b811a4257e883 Mon Sep 17 00:00:00 2001
From: dt
Date: Sat, 3 Jul 1999 12:30:04 +0000
Subject: Don't ignore weak symbols.
EGCS assign weak symbols to inline functions it couldn't inline (e.g. virtual
inline functions), template functions, etc. Omitting them result in quite bogus
profile.
Weak symbols created by __weak_reference are not really problem.
Caught by: Ilya Segalovich
---
usr.bin/gprof/elf.c | 1 -
1 file changed, 1 deletion(-)
(limited to 'usr.bin/gprof')
diff --git a/usr.bin/gprof/elf.c b/usr.bin/gprof/elf.c
index 3a59f53..359d76e 100644
--- a/usr.bin/gprof/elf.c
+++ b/usr.bin/gprof/elf.c
@@ -97,7 +97,6 @@ wantsym(const Elf_Sym *sym, const char *strtab)
bind = ELF_ST_BIND(sym->st_info);
if (type != STT_FUNC ||
- bind == STB_WEAK ||
(aflag && bind == STB_LOCAL) ||
(uflag && strchr(strtab + sym->st_name, '.') != NULL))
return 0;
--
cgit v1.1