This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] Fix missing hgot assignment in elfxx-mips.c
- From: Richard Sandiford <richard at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Mon, 13 Mar 2006 19:18:29 +0000
- Subject: [committed] Fix missing hgot assignment in elfxx-mips.c
A couple of weeks back, I added a "hgot" field to bfd_elf_link_hash_table,
but I'd managed to miss where it was created. Fixed below. Tested on
mips64-linux-gnu and installed as obvious.
Sorry for the oversight.
Richard
bfd/
* elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.159
diff -c -p -r1.159 elfxx-mips.c
*** bfd/elfxx-mips.c 27 Feb 2006 08:48:28 -0000 1.159
--- bfd/elfxx-mips.c 13 Mar 2006 19:12:58 -0000
*************** mips_elf_create_got_section (bfd *abfd,
*** 3576,3581 ****
--- 3576,3582 ----
h->non_elf = 0;
h->def_regular = 1;
h->type = STT_OBJECT;
+ elf_hash_table (info)->hgot = h;
if (info->shared
&& ! bfd_elf_link_record_dynamic_symbol (info, h))