This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Undefined weak symbols stay undefined
>>>>> "Momchil" == Momchil Velikov <velco@fadata.bg> writes:
>>>>> "Alan" == Alan Modra <amodra@bigpond.net.au> writes:
Alan> On Tue, Nov 25, 2003 at 11:57:32AM +0200, Momchil Velikov wrote:
>>> Aren't undefined weak symbols supposed to be _defined_ to zero by
>>> the linker, probably putting them in SHN_ANS ?
Alan> No. Undefined weak symbols have a _value_ of zero, which is different
Alan> to saying they are defined to zero.
Momchil> What is the need of undefined symbols in statically linked
Momchil> executables ?
Also, how come that the usual equivalence of "defined" and "having a
value" does not apply to ELF objects ?
~velco