This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strang code in elf_merge_symbol


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]