aboutsummaryrefslogtreecommitdiff
path: root/gold/i386.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-22 23:08:22 +0000
committerIan Lance Taylor <iant@google.com>2007-10-22 23:08:22 +0000
commit46fe162319cc0ad598f8aa74495ccde823349da2 (patch)
tree89aa9522a5133a2ee339f480d29f069908315988 /gold/i386.cc
parent60dc88db8bb295650876632bce467ba703fea555 (diff)
downloadgdb-46fe162319cc0ad598f8aa74495ccde823349da2.zip
gdb-46fe162319cc0ad598f8aa74495ccde823349da2.tar.gz
gdb-46fe162319cc0ad598f8aa74495ccde823349da2.tar.bz2
Fix versions of copied symbols.
Diffstat (limited to 'gold/i386.cc')
-rw-r--r--gold/i386.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index 4532bfd..26888bf 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -649,14 +649,9 @@ Target_i386::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* rel_dyn = this->rel_dyn_section(layout);
rel_dyn->add_global(ssym, elfcpp::R_386_COPY, dynbss, offset);
}