Strang code in elf_merge_symbol
Maciej W. Rozycki
macro@ds2.pg.gda.pl
Tue Sep 11 02:28:00 GMT 2001
On Mon, 10 Sep 2001, H . J . Lu wrote:
> 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?
Hmm, I think the comment above the quoted code explains the situation --
a common symbol from an object file overrides a weak or a function symbol
of the same name from a shared library.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
More information about the Binutils
mailing list