This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: weak undefined symbols from early object files
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: David Meggy <David dot Meggy at icron dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 12 Mar 2010 03:28:22 +0000
- Subject: Re: weak undefined symbols from early object files
- References: <C38E46DF9BC1C34E9DE57D687F9BA91110C406409E@SBS.icron.local>
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