OSDN Git Service

* elf.c (bfd_section_from_shdr): Check bfd_alloc return.
authoramodra <amodra>
Tue, 18 Sep 2007 08:17:05 +0000 (08:17 +0000)
committeramodra <amodra>
Tue, 18 Sep 2007 08:17:05 +0000 (08:17 +0000)
commite185641d7eb66a633d2411df2d89bbdef912400e
treefec2d73d4137e35551408c1b49ae2d177a5b3209
parent4e9794fa8ce12d096a4bffdcd1724e4e77e1f767
* 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