This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Possible weak linker bug in ld
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "Svein E. Seldal" <Svein dot Seldal at solidas dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 15 Oct 2003 23:53:00 +0930
- Subject: Re: Possible weak linker bug in ld
- References: <3F8D401E.2060900@solidas.com>
On Wed, Oct 15, 2003 at 02:39:58PM +0200, Svein E. Seldal wrote:
> I think I run across a bug in ld when linking files with weak symbols.
See http://www.caldera.com/developers/gabi/latest/ch4.symtab.html
"When the link editor searches archive libraries [see ``Archive File''
in Chapter 7], it extracts archive members that contain definitions of
undefined global symbols. The member's definition may be either a global
or a weak symbol. **The link editor does not extract archive members to
resolve undefined weak symbols.** Unresolved weak symbols have a zero
value."
--
Alan Modra
IBM OzLabs - Linux Technology Centre