diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-12-01 19:49:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-12-01 19:49:22 +0000 |
commit | 4dbfafccf0dd346e7a73cddf85c600aa7afa3644 (patch) | |
tree | 48e04173f24d3f0584279ae2a043809cbe100616 /gold/dwarf_reader.h | |
parent | 148c11bf2e571032ff6b7baa6c364a2b01f0b42e (diff) | |
download | gdb-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/dwarf_reader.h')
-rw-r--r-- | gold/dwarf_reader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/dwarf_reader.h b/gold/dwarf_reader.h index e2b8aa0..c197833 100644 --- a/gold/dwarf_reader.h +++ b/gold/dwarf_reader.h @@ -1,6 +1,6 @@ // dwarf_reader.h -- parse dwarf2/3 debug information for gold -*- C++ -*- -// Copyright 2007, 2008, 2009 Free Software Foundation, Inc. +// Copyright 2007, 2008, 2009, 2010 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. @@ -178,6 +178,8 @@ class Sized_dwarf_line_info : public Dwarf_line_info // This has relocations that point into buffer. Track_relocs<size, big_endian> track_relocs_; + // The type of the reloc section in track_relocs_--SHT_REL or SHT_RELA. + unsigned int track_relocs_type_; // This is used to figure out what section to apply a relocation to. const unsigned char* symtab_buffer_; |