aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-19 15:11:26 +0000
committerAlan Modra <amodra@gmail.com>2003-06-19 15:11:26 +0000
commit3254fd24bd81018442d7023d81197cacd6fb3eac (patch)
treec5e29ca585896b0a163bf2cb5c61d1bf9fe6a5d9 /bfd/elf64-ppc.c
parentea67f13b6848d0b7f120703b04b9d7d42bf04195 (diff)
downloadgdb-3254fd24bd81018442d7023d81197cacd6fb3eac.zip
gdb-3254fd24bd81018442d7023d81197cacd6fb3eac.tar.gz
gdb-3254fd24bd81018442d7023d81197cacd6fb3eac.tar.bz2
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Reinstate init of
elf hash tab fields.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 6414d13..1504c1d 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -3054,6 +3054,15 @@ ppc64_elf_link_hash_table_create (abfd)
if (!bfd_hash_table_init (&htab->branch_hash_table, branch_hash_newfunc))
return NULL;
+ /* Initializing two fields of the union is just cosmetic. We really
+ only care about glist, but when compiled on a 32-bit host the
+ bfd_vma fields are larger. Setting the bfd_vma to zero makes
+ debugger inspection of these fields look nicer. */
+ htab->elf.init_refcount.refcount = 0;
+ htab->elf.init_refcount.glist = NULL;
+ htab->elf.init_offset.offset = 0;
+ htab->elf.init_offset.glist = NULL;
+
return &htab->elf.root;
}