This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: patch to avoid xmalloc uses for hash tables
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Geoffrey Keating <geoffk at romulus dot sfbay dot redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 6 Jun 2002 20:12:18 +0930
- Subject: Re: patch to avoid xmalloc uses for hash tables
- References: <200206060850.g568ooU07456@romulus.sfbay.redhat.com>
On Thu, Jun 06, 2002 at 01:50:50AM -0700, Geoffrey Keating wrote:
>
> I believe there's a policy that xmalloc shouldn't be used in bfd;
Yes.
> * merge.c (merge_strings): Use htab_create_alloc with calloc, not
> htab_alloc.
> * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
This is OK. It would be nice if the libiberty update and this
patch could be synchronised. We're still using the old one in src/.
--
Alan Modra
IBM OzLabs - Linux Technology Centre