aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-hppa.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-02 01:39:00 +0000
committerAlan Modra <amodra@gmail.com>2005-02-02 01:39:00 +0000
commit336549c1f5f607f216a31f10511566f7939e0287 (patch)
tree8b677264c14944b8729144c23753c3fecc01d908 /bfd/elf64-hppa.c
parent4f40114dd292dbaf5a94eb04fdff90310a14b0a0 (diff)
downloadgdb-336549c1f5f607f216a31f10511566f7939e0287.zip
gdb-336549c1f5f607f216a31f10511566f7939e0287.tar.gz
gdb-336549c1f5f607f216a31f10511566f7939e0287.tar.bz2
* elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Don't clear everything,
just the fields specific to hppa64.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 8bc830c..869f7ed 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -1,5 +1,5 @@
/* Support for HPPA 64-bit ELF
- Copyright 1999, 2000, 2001, 2002, 2003, 2004
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -305,14 +305,15 @@ elf64_hppa_new_dyn_hash_entry (entry, table, string)
if (!ret)
return 0;
- /* Initialize our local data. All zeros, and definitely easier
- than setting 8 bit fields. */
- memset (ret, 0, sizeof (*ret));
-
/* Call the allocation method of the superclass. */
ret = ((struct elf64_hppa_dyn_hash_entry *)
bfd_hash_newfunc ((struct bfd_hash_entry *) ret, table, string));
+ /* Initialize our local data. All zeros. */
+ memset (&ret->dlt_offset, 0,
+ (sizeof (struct elf64_hppa_dyn_hash_entry)
+ - offsetof (struct elf64_hppa_dyn_hash_entry, dlt_offset)));
+
return &ret->root;
}