PR 465
commitf88327b96430b1dc063ed075a09042bd3632e501
authorNick Clifton <nickc@redhat.com>
Mon, 25 Oct 2004 09:59:01 +0000 (25 09:59 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 25 Oct 2004 09:59:01 +0000 (25 09:59 +0000)
tree963b8a119618878ba2e02a85674b8bcb9724c800
parent4e12d0ff6385a3723d5e29753d19cae77a0bf9a7
PR 465
* readelf.c (dynamic_strings_length): New global variable.
(VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
strings in the dynamic string table.
(process_section_headers): Initialise dynamic_strings_length.
(process_dynamic_section): Likewise.
(process_object): Reset dynamic_string_length when the buffer is freed.
(dynamic_sections_mips_val): Use the new macros.
(process_dynamic_section): Likewise.
(process_version_sections): Likewise.
(process_symbol_table): Likewise.
(process_syminfo): Likewise.
(process_mips_specific): Likewise.
(dump_relocations): Add a new parameter 'strtablen' and use this to verify that
  string offset in a given reloc is valid.  Print a suitable error message
  otherwise.
(process_relocs): Pass the new argument to dump_relocations.
binutils/ChangeLog
binutils/readelf.c