This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Strang code in elf_merge_symbol
- To: binutils at sourceware dot cygnus dot com
- Subject: Strang code in elf_merge_symbol
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 10 Sep 2001 13:29:25 -0700
In elf_merge_symbol, there is
if (! newdyn
&& (newdef
|| (bfd_is_com_section (sec)
&& (h->root.type == bfd_link_hash_defweak
|| h->type == STT_FUNC)))
&& olddyn
&& olddef
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0
&& (bind != STB_WEAK
|| h->root.type == bfd_link_hash_defweak))
{
I don't understand
(bfd_is_com_section (sec)
&& (h->root.type == bfd_link_hash_defweak
|| h->type == STT_FUNC))
If the symbol is in the common section, can it be STT_FUNC?
H.J.