aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-02 01:16:36 +0000
committerAlan Modra <amodra@gmail.com>2005-02-02 01:16:36 +0000
commit4f40114dd292dbaf5a94eb04fdff90310a14b0a0 (patch)
tree5e1a9265dc13443c3cef38b0fd59593aeba717da /bfd/elfxx-ia64.c
parent990a07abf64d4a77851368ad9fafebb51ef25136 (diff)
downloadgdb-4f40114dd292dbaf5a94eb04fdff90310a14b0a0.zip
gdb-4f40114dd292dbaf5a94eb04fdff90310a14b0a0.tar.gz
gdb-4f40114dd292dbaf5a94eb04fdff90310a14b0a0.tar.bz2
* elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
everything, just the field specific to ia64.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 9ae95d3..135a337 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -1,5 +1,5 @@
/* IA-64 support for 64-bit ELF
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
@@ -1616,15 +1616,12 @@ elfNN_ia64_new_elf_hash_entry (entry, table, string)
if (!ret)
return 0;
- /* Initialize our local data. All zeros, and definitely easier
- than setting a handful of bit fields. */
- memset (ret, 0, sizeof (*ret));
-
/* Call the allocation method of the superclass. */
ret = ((struct elfNN_ia64_link_hash_entry *)
_bfd_elf_link_hash_newfunc ((struct bfd_hash_entry *) ret,
table, string));
+ ret->info = NULL;
return (struct bfd_hash_entry *) ret;
}