This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ELF dynamic loader and undefined weak symbols
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gp at qnx dot com
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 29 Mar 2003 08:50:07 +0900
- Subject: Re: ELF dynamic loader and undefined weak symbols
- References: <200303281909.OAA08129@hub.ott.qnx.com>
Hi,
<gp at qnx dot 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