mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* 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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user