This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Undefined weak symbol bug
- From: Roland McGrath <roland at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>,binutils at sources dot redhat dot com
- Date: Mon, 31 Mar 2003 23:20:42 -0800
- Subject: Re: Undefined weak symbol bug
> Should ld or ld.so resolve it to zero? If ld does, should the
> binding be changed to STB_LOCAL and remove the relocation entry?
Yes, I think so. It just doesn't make sense for these to be resolved at
run time, because the choice of values is in fact fixed at link time.
> Undefined weak reference is never intended to be resolved by ld. Many
> changes have to be made for it.
I don't understand this remark. ld resolves undefined weak references to zero.