This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Strang code in elf_merge_symbol
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: Strang code in elf_merge_symbol
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Tue, 11 Sep 2001 11:30:26 +0200 (MET DST)
- cc: binutils at sourceware dot cygnus dot com
- Organization: Technical University of Gdansk
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 +