PR binutils/13219
authorNick Clifton <nickc@redhat.com>
Thu, 13 Oct 2011 09:33:02 +0000 (09:33 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 13 Oct 2011 09:33:02 +0000 (09:33 +0000)
commitba5cdace0d1f5ae5bbaffbcce98de8d0cee133fc
tree0c4f57517f62bf41b16303e2469483ae0ec23518
parentdb24da6dbbed283b2783d7f44f451cd4e9d45c9e
PR binutils/13219
* readelf.c (GET_ELF_SYMBOLS): Add sym_count parameter.
(get_32bit_elf_symbols): Add num_syms_return argument.
Return the number of symbols loaded into the symbol table.
(get_64bit_elf_symbols): Likewise.
(process_section_headers): Use GET_ELF_SYMBOLS to initialise
symbol count.
(proces_relocs): Likewise.
(ia64_process_unwind): Likewise.
(hppa_process_unwind): Likewise.
(arm_process_unwind): Likewise.
(process_dynamic_section): Likewise.
(process_version_sections): Likewise.
(process_symbol_table): Likewise.
(process_section_groups): Likewise.
Add check before indexing into the symbol table.
(apply_relocations): Likewise.
binutils/ChangeLog
binutils/readelf.c