This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

Re: elf backend hide_symbol bug


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


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