1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 18:40:59 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-26 15:15:38 +09:00
parent 6a8cb68226
commit 1a4b00c8e4

View File

@ -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;
}
}