This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ELF dynamic loader and undefined weak symbols


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]