aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-07 21:09:31 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-07 21:09:31 +0000
commit3a44184e641a1a7f6791b65fed802492032d8492 (patch)
tree5025d8c7aa99dc8b416e78f4cf046771e937c76d /gold/output.cc
parent71a72a84624232e06f41b605ac5a3e277f28a0dc (diff)
downloadgdb-3a44184e641a1a7f6791b65fed802492032d8492.zip
gdb-3a44184e641a1a7f6791b65fed802492032d8492.tar.gz
gdb-3a44184e641a1a7f6791b65fed802492032d8492.tar.bz2
PR 11061
* output.h (class Output_reloc) [SHT_RELA]: Add is_relative function. (class Output_data_reloc_generic): Define. (class Output_data_reloc_base): Change base class to Output_data_reloc_generic. Change add() method to call bump_relative_reloc_count for a relative reloc. Remove sort_relocs_ field. * output.cc (Output_data_reloc_base::do_write): Change sort_reloc_ to sort_relocs(). * layout.cc (Layout::add_target_dynamic_tags): Change dyn_rel to Output_data_reloc_generic*. Add DT_RELCOUNT/DT_RELACOUNT tag if appropriate. * layout.h (class Layout): Update declaration.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 63ab98c..b9ded6e 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -1049,7 +1049,7 @@ Output_data_reloc_base<sh_type, dynamic, size, big_endian>::do_write(
const off_t oview_size = this->data_size();
unsigned char* const oview = of->get_output_view(off, oview_size);
- if (this->sort_relocs_)
+ if (this->sort_relocs())
{
gold_assert(dynamic);
std::sort(this->relocs_.begin(), this->relocs_.end(),