Undefined weak symbols stay undefined
Momchil Velikov
velco@fadata.bg
Tue Nov 25 10:38:00 GMT 2003
>>>>> "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.
What is the need of undefined symbols in statically linked
executables ?
~velco
More information about the Binutils
mailing list