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: <gp at qnx dot com>
- To: "kaz Kojima" <kkojima at rr dot iij4u dot or dot jp>, <gp at qnx dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Mon, 31 Mar 2003 15:17:07 -0000
- Subject: Re: ELF dynamic loader and undefined weak symbols
Thanks, Kaz. That's exactly what I was looking for.
Cheers.
GP
kaz Kojima <kkojima at rr dot iij4u dot or dot jp> said:
> 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
>
--