diff options
author | Cary Coutant <ccoutant@google.com> | 2012-01-04 00:18:23 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-01-04 00:18:23 +0000 |
commit | dd74ae067124f200158633dd96bea9900f5d55c9 (patch) | |
tree | c3774765024f376699be0c3b5bcafda6dad65b5e /gold/output.cc | |
parent | 41f402b6267882624af680682444e37b9fbb6b17 (diff) | |
download | gdb-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.cc | 4 |
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)); } |