mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 21:22:20 +08:00
Fix versions of copied symbols.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user