This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: weak undefined symbols from early object files


On 12/03/2010 00:05, David Meggy wrote:

> I'm looking at a linker issue, which I'd like to verify whether it is a
> bug, or intentional.

  I think it is by design:

> What I've found out is the linker seems to always leave the symbols as
> undefined, so the elf contains NULL values for them, even though there is a
> libb_debug_info defined in an object in libb.a.

  Because undefined weak references do not cause library archive symbols to be
pulled in to resolve them, IIRC.

    cheers,
      DaveK


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