forked from Imagelibrary/binutils-gdb
* dwarf_reader.h (class Sized_dwarf_line_info): Add
track_relocs_type_ field. * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info): Set track_relocs_type_. (Sized_dwarf_line_info::process_one_opcode): Ignore the section contents when using RELA relocs. (Sized_dwarf_line_info::read_relocs): Add the reloc addend to reloc_map_. * reloc.cc (Track_relocs::next_addend): New function. * reloc.h (class Track_relocs): Declare next_addend.
This commit is contained in:
@@ -678,7 +678,7 @@ class Track_relocs
|
||||
unsigned int reloc_type);
|
||||
|
||||
// Return the offset in the data section to which the next reloc
|
||||
// applies. THis returns -1 if there is no next reloc.
|
||||
// applies. This returns -1 if there is no next reloc.
|
||||
off_t
|
||||
next_offset() const;
|
||||
|
||||
@@ -687,6 +687,11 @@ class Track_relocs
|
||||
unsigned int
|
||||
next_symndx() const;
|
||||
|
||||
// Return the addend of the next reloc. This returns 0 if there is
|
||||
// no next reloc.
|
||||
uint64_t
|
||||
next_addend() const;
|
||||
|
||||
// Advance to OFFSET within the data section, and return the number
|
||||
// of relocs which would be skipped.
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user