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

Hans-Peter Nilsson hp@bitrange.com
Sat Jan 12 16:25:00 GMT 2002


On Sat, 12 Jan 2002, Alan Modra wrote:
> 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?

Sorry, bogus pointer referenced.  :-(
Request withdrawn :-)

brgds, H-P



More information about the Binutils mailing list