mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 02:45:02 +08: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:
@ -1,3 +1,15 @@
|
||||
2013-02-10 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2013-02-10 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR ld/15113
|
||||
|
@ -1821,7 +1821,7 @@ bfinfdpic_elf_link_hash_table_create (bfd *abfd)
|
||||
struct bfinfdpic_elf_link_hash_table *ret;
|
||||
bfd_size_type amt = sizeof (struct bfinfdpic_elf_link_hash_table);
|
||||
|
||||
ret = bfd_zalloc (abfd, amt);
|
||||
ret = bfd_zmalloc (amt);
|
||||
if (ret == NULL)
|
||||
return NULL;
|
||||
|
||||
@ -5088,7 +5088,7 @@ bfin_link_hash_table_create (bfd * abfd)
|
||||
struct bfin_link_hash_table *ret;
|
||||
bfd_size_type amt = sizeof (struct bfin_link_hash_table);
|
||||
|
||||
ret = bfd_zalloc (abfd, amt);
|
||||
ret = bfd_zmalloc (amt);
|
||||
if (ret == NULL)
|
||||
return NULL;
|
||||
|
||||
|
@ -952,7 +952,7 @@ frvfdpic_elf_link_hash_table_create (bfd *abfd)
|
||||
struct frvfdpic_elf_link_hash_table *ret;
|
||||
bfd_size_type amt = sizeof (struct frvfdpic_elf_link_hash_table);
|
||||
|
||||
ret = bfd_zalloc (abfd, amt);
|
||||
ret = bfd_zmalloc (amt);
|
||||
if (ret == NULL)
|
||||
return NULL;
|
||||
|
||||
|
@ -299,7 +299,7 @@ elf64_hppa_hash_table_create (bfd *abfd)
|
||||
struct elf64_hppa_link_hash_table *htab;
|
||||
bfd_size_type amt = sizeof (*htab);
|
||||
|
||||
htab = bfd_zalloc (abfd, amt);
|
||||
htab = bfd_zmalloc (amt);
|
||||
if (htab == NULL)
|
||||
return NULL;
|
||||
|
||||
@ -308,7 +308,7 @@ elf64_hppa_hash_table_create (bfd *abfd)
|
||||
sizeof (struct elf64_hppa_link_hash_entry),
|
||||
HPPA64_ELF_DATA))
|
||||
{
|
||||
bfd_release (abfd, htab);
|
||||
free (htab);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -2459,7 +2459,7 @@ NAME (aout, link_hash_table_create) (bfd *abfd)
|
||||
struct aout_link_hash_table *ret;
|
||||
bfd_size_type amt = sizeof (struct aout_link_hash_table);
|
||||
|
||||
ret = bfd_alloc (abfd, amt);
|
||||
ret = bfd_malloc (amt);
|
||||
if (ret == NULL)
|
||||
return NULL;
|
||||
if (! NAME (aout, link_hash_table_init) (ret, abfd,
|
||||
|
Reference in New Issue
Block a user