elf backend hide_symbol bug
Alan Modra
amodra@bigpond.net.au
Tue Sep 7 02:07:00 GMT 2004
On Mon, Sep 06, 2004 at 08:59:57PM -0400, Hans-Peter Nilsson wrote:
> On Fri, 13 Aug 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.
>
> I think I need a clue here... Please bear with my denseness.
Please note the "may"! I didn't go so far as to convince myself that
cris really does have a problem. I just noted that in
elf_cris_adjust_gotplt_to_got, called from elf_cris_hide_symbol, you do
h->gotplt_refcount = -1
and in cris_elf_check_relocs, you
((struct elf_cris_link_hash_entry *) h)->gotplt_refcount++;
So, to tickle the bug on cris you need some combination of input files
that hides a symbol during the add_symbols phase of linking (visibility
or symbol versioning) and later references the same symbol using a
GOTPLT reloc.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list