aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-12-01 19:49:22 +0000
committerIan Lance Taylor <ian@airs.com>2010-12-01 19:49:22 +0000
commit4dbfafccf0dd346e7a73cddf85c600aa7afa3644 (patch)
tree48e04173f24d3f0584279ae2a043809cbe100616 /gold/reloc.h
parent148c11bf2e571032ff6b7baa6c364a2b01f0b42e (diff)
downloadgdb-4dbfafccf0dd346e7a73cddf85c600aa7afa3644.zip
gdb-4dbfafccf0dd346e7a73cddf85c600aa7afa3644.tar.gz
gdb-4dbfafccf0dd346e7a73cddf85c600aa7afa3644.tar.bz2
* 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.
Diffstat (limited to 'gold/reloc.h')
-rw-r--r--gold/reloc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gold/reloc.h b/gold/reloc.h
index f99da0c..87e70cc 100644
--- a/gold/reloc.h
+++ b/gold/reloc.h
@@ -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