[RFA:] Allow bfd_hash_lookup (bfd_get_section_by_name) in an empty bfd

Alan Modra amodra@bigpond.net.au
Sat Jan 12 06:24:00 GMT 2002


On Fri, Jan 11, 2002 at 11:44:41PM -0500, Hans-Peter Nilsson wrote:
> With some work in progress, I called bfd_get_section_by_name
> with a bfd with no sections (presumably: yet).  It seems like
> that should be valid, and not get a SIGFPE on the
> "index = hash % table->size" further down.

Huh?  opncls.c:_bfd_new_bfd sets up the hash table.  How did you
manage this trick?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list