From: Alan Modra Date: Wed, 2 Feb 2005 01:16:36 +0000 (+0000) Subject: * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f40114dd292dbaf5a94eb04fdff90310a14b0a0;p=binutils-gdb.git * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear everything, just the field specific to ia64. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5607b97d308..6c394ab6190 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-02-02 Alan Modra + + * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear + everything, just the field specific to ia64. + 2005-02-01 Alan Modra * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to.. diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 9ae95d32387..135a337474b 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 @@ -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; }