This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
GOT entry for weak symbols.
- To: ian at zembu dot com, binutils at sourceware dot cygnus dot com
- Subject: GOT entry for weak symbols.
- From: Koundinya K <knk at dde dot dk>
- Date: Mon, 06 Mar 2000 19:42:08 -0700
- Organization: DDE
Hi ian,
I have been observing the behavior of GNU Linker in handling weak
symbols on for normal / traditional mips targets and comparing it
against the way the native linkers work while generating shared libs.
Right now the GNU Linker makes an entry in the GOT for the weak symbols,
just like IRIX does. But traditional mips targets contain a zero in the
GOT for the weak symbols. I have checked it out on 2 mips SVR4.2
flavors. It is the same. I could not get a hint of this anywhere in the
MIPS-ABI as to what action should the linker take ??
Again I think a check for this if IRIX_COMPAT is ict_none should be
done in finish_dynamic_symbol() has to be done. Though the st_value for
that symbol contains a value, while recording that symbol in GOT, a
value of zero should be recorded.
What do you think about this ?
Thanks a lot.
koundinya