This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] MIPS/BFD: Correct argument type in a hash table iterator
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: Catherine Moore <clm at codesourcery dot com>, <binutils at sourceware dot org>
- Date: Fri, 8 Mar 2013 11:50:36 +0000
- Subject: [committed] MIPS/BFD: Correct argument type in a hash table iterator
- References: <alpine.DEB.1.10.1302072108300.6762@tp.orcam.me.uk> <87621mwt3l.fsf@talisman.default>
On Wed, 20 Feb 2013, Richard Sandiford wrote:
> > @@ -8923,13 +9190,27 @@ static bfd_boolean
> > mips_elf_allocate_lazy_stub (struct mips_elf_link_hash_entry *h, void **data)
> > {
> > struct mips_elf_link_hash_table *htab;
>
> Also, preexisting problem, but it should be "void *data" rather than
> "void **data".
I've committed the fix below.
2013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
bfd/
* elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
Maciej
binutils-bfd-alloc-lazy-stub-data.diff
Index: binutils-fsf-trunk-quilt/bfd/elfxx-mips.c
===================================================================
--- binutils-fsf-trunk-quilt.orig/bfd/elfxx-mips.c 2013-03-08 10:59:15.775490578 +0000
+++ binutils-fsf-trunk-quilt/bfd/elfxx-mips.c 2013-03-08 11:09:04.255440319 +0000
@@ -8920,7 +8920,7 @@ mips_elf_estimate_stub_size (bfd *output
allocate an entry in the stubs section. */
static bfd_boolean
-mips_elf_allocate_lazy_stub (struct mips_elf_link_hash_entry *h, void **data)
+mips_elf_allocate_lazy_stub (struct mips_elf_link_hash_entry *h, void *data)
{
struct mips_elf_link_hash_table *htab;