This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA:] Allow bfd_hash_lookup (bfd_get_section_by_name) in an empty bfd
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 12 Jan 2002 15:23:28 +1030
- Subject: Re: [RFA:] Allow bfd_hash_lookup (bfd_get_section_by_name) in an empty bfd
- References: <Pine.BSF.4.30.0201112343550.16782-100000@dair.pair.com>
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