ELF dynamic loader and undefined weak symbols

kaz Kojima kkojima@rr.iij4u.or.jp
Sat Mar 29 01:17:00 GMT 2003


Hi,

<gp@qnx.com> wrote:
> It looks like this means our loader is not handling undefined weak symbols
> correctly.  The way the code is written, it looks like undefined weak symbols
> should not prevent the binary from being loaded, so long as the code checks
> the potentially undefined weak reference before using it.  
> 
> Can anyone confirm this?  Where can I find documentation that explains what
> our ELF loader should do in this case?  

My "SYSTEM V APPLICATION BINARY INTERFACE" book says
"Unresolved weak symbols have a zero value".
Perhaps the section "Weak Symbols" in Sun's page
<URL:http://docs.sun.com/db/doc/801-6737/6i13gn6ii?a=view>
would be handy. Hope this helps.

Regards,
	kaz



More information about the Binutils mailing list