diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-22 23:08:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-22 23:08:22 +0000 |
commit | ee255ff29c5206d483a394039beb00643492ad71 (patch) | |
tree | ff58ea50f00f4c10eda0276f95ff7bc3d11d728b /gold/x86_64.cc | |
parent | c12fb890af8e94af0cfa839d642a8b06b4198e53 (diff) | |
download | binutils-redhat-ee255ff29c5206d483a394039beb00643492ad71.tar.gz |
Fix versions of copied symbols.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r-- | gold/x86_64.cc | 7 |
1 files changed, 1 insertions, 6 deletions
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); } |