aboutsummaryrefslogtreecommitdiff
path: root/bfd/i386linux.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-02-10 04:01:15 +0000
committerAlan Modra <amodra@gmail.com>2013-02-10 04:01:15 +0000
commit22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b (patch)
tree2532f5f4a13fb7f0e699b45bf644dabc8a2f2cc0 /bfd/i386linux.c
parent0e5de31a6cfc218ea24a2c750921f7411c4e5c01 (diff)
downloadgdb-22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b.zip
gdb-22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b.tar.gz
gdb-22cdc249cd8dd8a43a5a4d2cba2b69f240362a8b.tar.bz2
* i386linux.c (linux_link_hash_table_create): Allocate table
with bfd_zmalloc, not bfd_alloc. * pdp11.c (link_hash_table_create): Allocate table with bfd_malloc, not bfd_alloc. * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table with bfd_zmalloc, not bfd_zalloc. (bfin_link_hash_table_create): Likewise. * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise. * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
Diffstat (limited to 'bfd/i386linux.c')
-rw-r--r--bfd/i386linux.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bfd/i386linux.c b/bfd/i386linux.c
index 33a6808..65ae5c9 100644
--- a/bfd/i386linux.c
+++ b/bfd/i386linux.c
@@ -204,7 +204,7 @@ linux_link_hash_table_create (bfd *abfd)
struct linux_link_hash_table *ret;
bfd_size_type amt = sizeof (struct linux_link_hash_table);
- ret = (struct linux_link_hash_table *) bfd_alloc (abfd, amt);
+ ret = (struct linux_link_hash_table *) bfd_zmalloc (amt);
if (ret == (struct linux_link_hash_table *) NULL)
return (struct bfd_link_hash_table *) NULL;
if (!NAME(aout,link_hash_table_init) (&ret->root, abfd,
@@ -215,11 +215,6 @@ linux_link_hash_table_create (bfd *abfd)
return (struct bfd_link_hash_table *) NULL;
}
- ret->dynobj = NULL;
- ret->fixup_count = 0;
- ret->local_builtins = 0;
- ret->fixup_list = NULL;
-
return &ret->root.root;
}