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]

Re: gld not complaining about undefined symbols


   Date: Thu, 06 Jan 2000 15:12:42 -0600
   From: Eric DeVolder <devolder@evsx.com>

   I thought that the reloc howto functions were only called when symbol
   value had been resolved, else ld spits out an undefined symbol message.

No.  The linker lets BFD do all relocation handling.  If you are using
the new linker style (see the long comment at the top of linker.c),
then you need to call the undefined_symbol callback when appropriate.
If you are using bfd_perform_relocation with a special_function, and
the special_function does not return bfd_reloc_continue, then you need
to return bfd_reloc_undefined for an undefined symbol.

Ian

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