OSDN Git Service

PR 465
authornickc <nickc>
Mon, 25 Oct 2004 09:59:00 +0000 (09:59 +0000)
committernickc <nickc>
Mon, 25 Oct 2004 09:59:00 +0000 (09:59 +0000)
commit9900cfb01061e4af5796d061de4689206f0b9a08
tree9a8be2fd64e65f745324409dec43ae7bee241919
parent4dedbf6ea10b7633d55efbcd9f5591628b1b6b15
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