aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-09 23:16:54 +0000
committerIan Lance Taylor <iant@google.com>2007-11-09 23:16:54 +0000
commit4c50553d987166e6f2ee3aa56e286dc4b9e82cbc (patch)
tree4ec409579560bd2dc46f427a9117021dea635cba /gold/object.h
parentbbce853ae5fde8774ee9f8031d3a7570ad5d3b15 (diff)
downloadgdb-4c50553d987166e6f2ee3aa56e286dc4b9e82cbc.zip
gdb-4c50553d987166e6f2ee3aa56e286dc4b9e82cbc.tar.gz
gdb-4c50553d987166e6f2ee3aa56e286dc4b9e82cbc.tar.bz2
From Craig Silverstein: Use relocations in reporting error message
locations.
Diffstat (limited to 'gold/object.h')
-rw-r--r--gold/object.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h
index 8aa40a2..b8bc65c 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -215,6 +215,11 @@ class Object
section_link(unsigned int shndx)
{ return this->do_section_link(shndx); }
+ // Return the section info field given a section index.
+ unsigned int
+ section_info(unsigned int shndx)
+ { return this->do_section_info(shndx); }
+
// Read the symbol information.
void
read_symbols(Read_symbols_data* sd)
@@ -312,6 +317,10 @@ class Object
virtual unsigned int
do_section_link(unsigned int shndx) = 0;
+ // Get section info field--implemented by child class.
+ virtual unsigned int
+ do_section_info(unsigned int shndx) = 0;
+
// Get the file.
Input_file*
input_file() const
@@ -826,6 +835,11 @@ class Sized_relobj : public Relobj
do_section_link(unsigned int shndx)
{ return this->elf_file_.section_link(shndx); }
+ // Return the section info field.
+ unsigned int
+ do_section_info(unsigned int shndx)
+ { return this->elf_file_.section_info(shndx); }
+
private:
// For convenience.
typedef Sized_relobj<size, big_endian> This;