* aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
using bfd_alloc, not malloc. * cofflink.c (_bfd_coff_link_hash_table_create): Likewise. * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise. * i386linux.c (linux_link_hash_table_create): Likewise. * linker.c (_bfd_generic_link_hash_table_create): Likewise. * sunos.c (sunos_link_hash_table_create): Likewise.
This commit is contained in:
parent
84144a8f56
commit
e336470145
|
@ -5,6 +5,14 @@ Mon Jul 10 11:45:55 1995 Ken Raeburn <raeburn@cygnus.com>
|
|||
|
||||
Mon Jul 10 11:09:58 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* aoutx.h (NAME(aout,link_hash_table_create)): Allocate hash table
|
||||
using bfd_alloc, not malloc.
|
||||
* cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
|
||||
* ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
|
||||
* i386linux.c (linux_link_hash_table_create): Likewise.
|
||||
* linker.c (_bfd_generic_link_hash_table_create): Likewise.
|
||||
* sunos.c (sunos_link_hash_table_create): Likewise.
|
||||
|
||||
Based on patches from Eric Youngdale <eric@aib.com>:
|
||||
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): If -Bsymbolic,
|
||||
output a DT_SYMBOLIC dynamic entry.
|
||||
|
|
|
@ -190,7 +190,7 @@ _bfd_coff_link_hash_table_create (abfd)
|
|||
struct coff_link_hash_table *ret;
|
||||
|
||||
ret = ((struct coff_link_hash_table *)
|
||||
malloc (sizeof (struct coff_link_hash_table)));
|
||||
bfd_alloc (abfd, sizeof (struct coff_link_hash_table)));
|
||||
if (ret == NULL)
|
||||
{
|
||||
bfd_set_error (bfd_error_no_memory);
|
||||
|
|
|
@ -597,8 +597,8 @@ _bfd_generic_link_hash_table_create (abfd)
|
|||
struct generic_link_hash_table *ret;
|
||||
|
||||
ret = ((struct generic_link_hash_table *)
|
||||
malloc (sizeof (struct generic_link_hash_table)));
|
||||
if (!ret)
|
||||
bfd_alloc (abfd, sizeof (struct generic_link_hash_table)));
|
||||
if (ret == NULL)
|
||||
{
|
||||
bfd_set_error (bfd_error_no_memory);
|
||||
return (struct bfd_link_hash_table *) NULL;
|
||||
|
|
Loading…
Reference in New Issue