* elf.c (bfd_section_from_shdr): Check bfd_alloc return.
commit1f3076155dbba4a924d4c82c80a5fdeb162d6c7a
authorAlan Modra <amodra@bigpond.net.au>
Tue, 18 Sep 2007 08:17:06 +0000 (18 08:17 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 18 Sep 2007 08:17:06 +0000 (18 08:17 +0000)
tree316392e55fb61e3c7882b2606a4e7b3cc26e1464
parent23ef9f80d8666ba3c776d847500a9ae34b21e860
* 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