Undefined weak symbols stay undefined

Alan Modra amodra@bigpond.net.au
Tue Nov 25 10:25:00 GMT 2003


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 ?

No.  Undefined weak symbols have a _value_ of zero, which is different
to saying they are defined to zero.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list