aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-01-04 00:18:23 +0000
committerCary Coutant <ccoutant@google.com>2012-01-04 00:18:23 +0000
commitdd74ae067124f200158633dd96bea9900f5d55c9 (patch)
treec3774765024f376699be0c3b5bcafda6dad65b5e /gold/output.cc
parent41f402b6267882624af680682444e37b9fbb6b17 (diff)
downloadgdb-dd74ae067124f200158633dd96bea9900f5d55c9.zip
gdb-dd74ae067124f200158633dd96bea9900f5d55c9.tar.gz
gdb-dd74ae067124f200158633dd96bea9900f5d55c9.tar.bz2
* gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
Use abstract base class for GOT. * gold/output.h (class Output_data_got_base): New abstract base class. (class Output_data_got): Derive from new base class, adjust ctors. (Output_data_got::reserve_slot): Make virtual; rename to do_reserve_slot; Adjust callers. * gold/target.h (Sized_target::init_got_plt_for_update): Return pointer to abstract base class. * gold/x86_64.cc (Target_x86_64::init_got_plt_for_update): Likewise.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 6e46fd5..ca19039 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -1582,7 +1582,7 @@ Output_data_got<size, big_endian>::reserve_local(
unsigned int sym_index,
unsigned int got_type)
{
- this->reserve_slot(i);
+ this->do_reserve_slot(i);
object->set_local_got_offset(sym_index, got_type, this->got_offset(i));
}
@@ -1595,7 +1595,7 @@ Output_data_got<size, big_endian>::reserve_global(
Symbol* gsym,
unsigned int got_type)
{
- this->reserve_slot(i);
+ this->do_reserve_slot(i);
gsym->set_got_offset(got_type, this->got_offset(i));
}