FreeBSD/contrib/binutils/bfd/elf.c
/* Create an ELF linker hash table.  */
Create an ELF linker hash table.
Create an ELF linker hash table .
struct bfd_link_hash_table *
_bfd_elf_link_hash_table_create (bfd *abfd)
{
  struct elf_link_hash_table *ret;
  bfd_size_type amt = sizeof (struct elf_link_hash_table);
  ret = bfd_malloc (amt);
  if (ret == NULL)
    return NULL;
  if (! _bfd_elf_link_hash_table_init (ret, abfd, _bfd_elf_link_hash_newfunc,
				       sizeof (struct elf_link_hash_entry)))
    {
      free (ret);
      return NULL;
    }
  return &ret->root;
}
struct bfd_link_hash_table * _bfd_elf_link_hash_table_create ( bfd * abfd ) { struct elf_link_hash_table * ret ; bfd_size_type amt = sizeof ( struct elf_link_hash_table ) ; ret = bfd_malloc ( amt ) ; if ( ret == NULL ) return NULL ; if ( ! _bfd_elf_link_hash_table_init ( ret , abfd , _bfd_elf_link_hash_newfunc , sizeof ( struct elf_link_hash_entry ) ) ) { free ( ret ) ; return NULL ; } return & ret -> root ; }
Create an ELF linker hash table.
Create an ELF linker hash table .