elf backend hide_symbol bug
Bob Wilson
bwilson@tensilica.com
Thu Aug 26 23:50:00 GMT 2004
Alan Modra wrote:
> See http://sources.redhat.com/bugzilla/show_bug.cgi?id=293 for my
> analysis of this problem. mips, cris, xtensa maintainers should
> note that there may be a similar problem for their ports. The
> backend hide_symbol functions can be called when the plt and got
> unions are used as refcounts, eg. from bfd_elf_link_add_symbols,
> and also when the field may be used as an offset/pointer, eg. from
> _bfd_elf_adjust_dynamic_symbol.
>
> PR 293
> * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
> "zero" the plt field.
>
I think the Xtensa port is OK -- it never uses the offset portion of the union
and also ignores refcounts of -1. I'm not completely certain, though, so I'll
keep an eye out for problems in this area. Thanks for the warning, Alan.
--Bob
More information about the Binutils
mailing list