aboutsummaryrefslogtreecommitdiff
path: root/gold/target.h
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/target.h
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/target.h')
-rw-r--r--gold/target.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gold/target.h b/gold/target.h
index a378120..1035427 100644
--- a/gold/target.h
+++ b/gold/target.h
@@ -56,8 +56,7 @@ template<int size>
class Sized_symbol;
class Symbol_table;
class Output_data;
-template<int size, bool big_endian>
-class Output_data_got;
+class Output_data_got_base;
class Output_section;
class Input_objects;
class Task;
@@ -845,7 +844,7 @@ class Sized_target : public Target
// Create the GOT and PLT sections for an incremental update.
// A target needs to implement this to support incremental linking.
- virtual Output_data_got<size, big_endian>*
+ virtual Output_data_got_base*
init_got_plt_for_update(Symbol_table*,
Layout*,
unsigned int /* got_count */,