From dd74ae067124f200158633dd96bea9900f5d55c9 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Wed, 4 Jan 2012 00:18:23 +0000 Subject: * 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. --- gold/incremental.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/incremental.cc') 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::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* 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. -- cgit v1.1