This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: gld not complaining about undefined symbols
- To: devolder at evsx dot com
- Subject: Re: gld not complaining about undefined symbols
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 6 Jan 2000 17:10:55 -0500
- CC: binutils at sourceware dot cygnus dot com
- References: <3875054A.71ACD806@evsx.com>
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