This is the mail archive of the binutils@sourceware.cygnus.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]

GOT entry for weak symbols.


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






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