OSDN Git Service

* dwarf.c (process_debug_info): Check for corrupt lengths.
authorNick Clifton <nickc@redhat.com>
Sun, 28 Oct 2007 14:00:20 +0000 (14:00 +0000)
committerNick Clifton <nickc@redhat.com>
Sun, 28 Oct 2007 14:00:20 +0000 (14:00 +0000)
commit7b9e6e8c5cc8ead03d2e2a2cd733dae9215139d3
tree0b81cee2ae0126cda06a45d35df59ff50ffb9a73
parent3c0008a027c757796118c37cebd2418d067c1867
* dwarf.c (process_debug_info): Check for corrupt lengths.
* readelf.c (get_reloc_type): New function.  Returns the reloc number extracted from the info field of a reloc.
  (get_reloc_symindex): New function.  Returns the symbol index
  (extracted from the info field of a reloc.
  (dump_relocations): Use the new functions.
  (slurp_ia64_unwind_table): Use the new functions.
  (slurp_hppa_unwind_table): Use the new functions.
  (dump_section_as_bytes): Use the new functions.
  (get_reloc_size): Delete function.
  (is_32bit_abs_reloc): New function.  Determines if a given reloc type is a 32-bit absolute relocation.
  (is_32bit_pcrel_reloc): New function.  Like is_32bit_abs_reloc but for pc-relative relocations.
  (is_64bit_abs_reloc): New function.  Like is_32bit_abs_reloc but for 64-bit absolute relocations.
  (is_16bit_abs_reloc): New function.  Like is_32bit_abs_reloc but for 32-bit absolute relocations.
  (debug_apply_rela_addends): Use the new functions.  Skip and warn about any unrecognised relocations.
binutils/ChangeLog
binutils/dwarf.c
binutils/readelf.c