diff options
Diffstat (limited to 'bfd/elf32-s390.c')
-rw-r--r-- | bfd/elf32-s390.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c index 491daf3..2c0822b 100644 --- a/bfd/elf32-s390.c +++ b/bfd/elf32-s390.c @@ -786,7 +786,7 @@ elf_s390_link_hash_table_create (bfd *abfd) struct elf_s390_link_hash_table *ret; bfd_size_type amt = sizeof (struct elf_s390_link_hash_table); - ret = (struct elf_s390_link_hash_table *) bfd_malloc (amt); + ret = (struct elf_s390_link_hash_table *) bfd_zmalloc (amt); if (ret == NULL) return NULL; @@ -798,16 +798,6 @@ elf_s390_link_hash_table_create (bfd *abfd) return NULL; } - ret->elf.sgot = NULL; - ret->elf.sgotplt = NULL; - ret->elf.srelgot = NULL; - ret->elf.splt = NULL; - ret->elf.srelplt = NULL; - ret->sdynbss = NULL; - ret->srelbss = NULL; - ret->tls_ldm_got.refcount = 0; - ret->sym_cache.abfd = NULL; - return &ret->elf.root; } |