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/incremental.cc | |
parent | 41f402b6267882624af680682444e37b9fbb6b17 (diff) | |
download | fsf-binutils-gdb-dd74ae067124f200158633dd96bea9900f5d55c9.zip fsf-binutils-gdb-dd74ae067124f200158633dd96bea9900f5d55c9.tar.gz fsf-binutils-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/incremental.cc')
-rw-r--r-- | gold/incremental.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/incremental.cc b/gold/incremental.cc index 75e44c5..39bad37 100644 --- a/gold/incremental.cc +++ b/gold/incremental.cc @@ -632,7 +632,7 @@ Sized_incremental_binary<size, big_endian>::do_process_got_plt( // Tell the target how big the GOT and PLT sections are. unsigned int got_count = got_plt_reader.get_got_entry_count(); unsigned int plt_count = got_plt_reader.get_plt_entry_count(); - Output_data_got<size, big_endian>* got = + Output_data_got_base* got = target->init_got_plt_for_update(symtab, layout, got_count, plt_count); // Read the GOT entries from the base file and build the outgoing GOT. |