summaryrefslogtreecommitdiff
path: root/gold/ehframe.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-21 21:19:45 +0000
committerIan Lance Taylor <iant@google.com>2007-12-21 21:19:45 +0000
commita9a60db6891083f0afc4df6353a0c7ef80508874 (patch)
tree4a78b23b559b910d217cc25c71fbfea946f646cd /gold/ehframe.cc
parentdf1764b8ab18419eab855810f86419777d12925a (diff)
downloadbinutils-gdb-a9a60db6891083f0afc4df6353a0c7ef80508874.tar.gz
Speed up relocations against local symbols in merged sections.
Diffstat (limited to 'gold/ehframe.cc')
-rw-r--r--gold/ehframe.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/ehframe.cc b/gold/ehframe.cc
index b77148b4398..b2406b4f7e1 100644
--- a/gold/ehframe.cc
+++ b/gold/ehframe.cc
@@ -1041,6 +1041,15 @@ Eh_frame::do_output_offset(const Relobj* object, unsigned int shndx,
return this->merge_map_.get_output_offset(object, shndx, offset, poutput);
}
+// Return whether this is the merge section for an input section.
+
+bool
+Eh_frame::do_is_merge_section_for(const Relobj* object,
+ unsigned int shndx) const
+{
+ return this->merge_map_.is_merge_section_for(object, shndx);
+}
+
// Write the data to the output file.
void