* elf.c (bfd_section_from_shdr): Check bfd_alloc return.
authorAlan Modra <amodra@gmail.com>
Tue, 18 Sep 2007 08:17:06 +0000 (08:17 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Sep 2007 08:17:06 +0000 (08:17 +0000)
commit14b1c01e0475f79b97692fbfd9de25c541aeb0b4
treeebd07f903e536c2b84b290c8c93802a031a4f52e
parent614f30a283ede08a5d2913a0597581edeb7c0905
* elf.c (bfd_section_from_shdr): Check bfd_alloc return.
(elfcore_write_note): Check realloc return.
* elflink.c (_bfd_elf_link_find_version_dependencies): Check
bfd_zalloc return.
(_bfd_elf_link_assign_sym_version): Check bfd_malloc return.
(elf_link_add_object_symbols): Likewise.
(struct hash_codes_info): New.
(elf_collect_hash_codes): Return bfd_malloc error.
(struct collect_gnu_hash_codes): Add "error".
(elf_collect_gnu_hash_codes): Return bfd_malloc error.
(bfd_elf_size_dynamic_sections): Check return status of
_bfd_elf_link_find_version_dependencies.
(bfd_elf_size_dynsym_hash_dynstr): Adjust for elf_collect_hash_codes
and elf_collect_gnu_hash_codes changes.
(elf_sym_name_compare): Formatting.
(elf_fixup_link_order): Use bfd_malloc, not xmalloc.
bfd/ChangeLog
bfd/elf.c
bfd/elflink.c