From 9b07f471e3360c9790f7ec83400e500e5f3098ca Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 26 Jan 2008 01:17:45 +0000 Subject: Don't pass around the target in order to define symbols; get it from the parameters instead. --- gold/i386.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gold/i386.cc') diff --git a/gold/i386.cc b/gold/i386.cc index fe8341d..9c96bfd 100644 --- a/gold/i386.cc +++ b/gold/i386.cc @@ -358,7 +358,7 @@ Target_i386::got_section(Symbol_table* symtab, Layout* layout) this->got_plt_->set_current_data_size(3 * 4); // Define _GLOBAL_OFFSET_TABLE_ at the start of the PLT. - symtab->define_in_output_data(this, "_GLOBAL_OFFSET_TABLE_", NULL, + symtab->define_in_output_data("_GLOBAL_OFFSET_TABLE_", NULL, this->got_plt_, 0, 0, elfcpp::STT_OBJECT, elfcpp::STB_LOCAL, @@ -735,7 +735,7 @@ Target_i386::copy_reloc(const General_options* options, section_size_type offset = dynbss_size; dynbss->set_current_data_size(dynbss_size + symsize); - symtab->define_with_copy_reloc(this, ssym, dynbss, offset); + symtab->define_with_copy_reloc(ssym, dynbss, offset); // Add the COPY reloc. Reloc_section* rel_dyn = this->rel_dyn_section(layout); -- cgit v1.1