diff options
author | Alan Modra <amodra@gmail.com> | 2013-02-10 02:19:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-02-10 02:19:18 +0000 |
commit | 0e5de31a6cfc218ea24a2c750921f7411c4e5c01 (patch) | |
tree | 725f1724bfac59c20820b5fcaf6c9aaa5d5e6afa /bfd/elf32-sh.c | |
parent | 0874934865aefd6eab09cef9ed6e146af9edb25d (diff) | |
download | gdb-0e5de31a6cfc218ea24a2c750921f7411c4e5c01.zip gdb-0e5de31a6cfc218ea24a2c750921f7411c4e5c01.tar.gz gdb-0e5de31a6cfc218ea24a2c750921f7411c4e5c01.tar.bz2 |
PR ld/15113
* elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r-- | bfd/elf32-sh.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 5c05329..12872a1 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -2549,7 +2549,7 @@ sh_elf_link_hash_table_create (bfd *abfd) struct elf_sh_link_hash_table *ret; bfd_size_type amt = sizeof (struct elf_sh_link_hash_table); - ret = (struct elf_sh_link_hash_table *) bfd_malloc (amt); + ret = (struct elf_sh_link_hash_table *) bfd_zmalloc (amt); if (ret == (struct elf_sh_link_hash_table *) NULL) return NULL; @@ -2562,17 +2562,6 @@ sh_elf_link_hash_table_create (bfd *abfd) return NULL; } - ret->sgot = NULL; - ret->sgotplt = NULL; - ret->srelgot = NULL; - ret->splt = NULL; - ret->srelplt = NULL; - ret->sdynbss = NULL; - ret->srelbss = NULL; - ret->srelplt2 = NULL; - ret->sym_cache.abfd = NULL; - ret->tls_ldm_got.refcount = 0; - ret->plt_info = NULL; ret->vxworks_p = vxworks_object_p (abfd); ret->fdpic_p = fdpic_object_p (abfd); |