From ee255ff29c5206d483a394039beb00643492ad71 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 22 Oct 2007 23:08:22 +0000 Subject: Fix versions of copied symbols. --- gold/x86_64.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gold/x86_64.cc') diff --git a/gold/x86_64.cc b/gold/x86_64.cc index b6a8a4a2a7..0af7a16483 100644 --- a/gold/x86_64.cc +++ b/gold/x86_64.cc @@ -621,14 +621,9 @@ Target_x86_64::copy_reloc(const General_options* options, off_t offset = dynbss_size; dynbss->set_space_size(dynbss_size + symsize); - // Define the symbol in the .dynbss section. - symtab->define_in_output_data(this, ssym->name(), ssym->version(), - dynbss, offset, symsize, ssym->type(), - ssym->binding(), ssym->visibility(), - ssym->nonvis(), false, false); + symtab->define_with_copy_reloc(this, ssym, dynbss, offset); // Add the COPY reloc. - ssym->set_needs_dynsym_entry(); Reloc_section* rela_dyn = this->rela_dyn_section(layout); rela_dyn->add_global(ssym, elfcpp::R_X86_64_COPY, dynbss, offset, 0); } -- cgit v1.2.1