[RFC] unify dynamic_symbol_p implementations
Alan Modra
amodra@bigpond.net.au
Sat Jul 19 05:57:00 GMT 2003
On Fri, Jul 18, 2003 at 09:13:30PM -0700, H. J. Lu wrote:
> I checked in the following patch to fix it.
>
> * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Fix a typo.
> (SYMBOL_CALLS_LOCAL): Likewise.
Obvious change.
> * elflink.c (_bfd_elf_dynamic_symbol_p): Return TRUE
> immediately if symbol isn't defined locally.
This isn't so obvious, and I think wrong. You do happen to be restoring
more or less the original SYMBOL_REFERENCES_LOCAL behaviour, but I think
the idea is to move the weak undef handling into
_bfd_elf_dynamic_symbol_p.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list