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 <iseg@comptek.ru>
This commit is contained in:
Dmitrij Tejblum 1999-07-03 12:30:04 +00:00
parent 19364f02eb
commit aac6614bdc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48519

View File

@ -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;