mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 16:58:12 +03:00
temporary
This commit is contained in:
parent
6a8cb68226
commit
1a4b00c8e4
@ -199,12 +199,12 @@ void ObjectFile::register_defined_symbols() {
|
||||
Symbol *sym = symbols[i];
|
||||
Spinlock lock(sym->lock);
|
||||
|
||||
bool is_weak = (elf_syms[i].getBinding() == STB_WEAK);
|
||||
bool is_weak = (elf_syms[j].getBinding() == STB_WEAK);
|
||||
|
||||
if (!sym->file || this->priority < sym->file->priority ||
|
||||
(sym->is_weak && !is_weak)) {
|
||||
sym->file = this;
|
||||
sym->visibility = elf_syms[i].getVisibility();
|
||||
sym->visibility = elf_syms[j].getVisibility();
|
||||
sym->is_weak = is_weak;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user