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 | 46fe162319cc0ad598f8aa74495ccde823349da2 (patch) | |
tree | 89aa9522a5133a2ee339f480d29f069908315988 /gold/x86_64.cc | |
parent | 60dc88db8bb295650876632bce467ba703fea555 (diff) | |
download | gdb-46fe162319cc0ad598f8aa74495ccde823349da2.zip gdb-46fe162319cc0ad598f8aa74495ccde823349da2.tar.gz gdb-46fe162319cc0ad598f8aa74495ccde823349da2.tar.bz2 |
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 b6a8a4a..0af7a16 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); } |