PR 465
authorNick Clifton <nickc@redhat.com>
Mon, 25 Oct 2004 09:59:01 +0000 (09:59 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 25 Oct 2004 09:59:01 +0000 (09:59 +0000)
commitd79b3d5057332a6e4181cab6e53d7371612c66a7
tree7ba7e114e97af822f3dcb8c0e1aeee466e1c46ad
parentfc3d45e89ebe0b81e46d82e106db51921e8c2b74
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