1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-22 10:27:48 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-20 07:53:53 +09:00
parent 468daa3a0e
commit d5095d00e0

View File

@ -432,7 +432,7 @@ void ObjectFile::handle_undefined_weak_symbols() {
if (esym.isUndefined() && esym.getBinding() == STB_WEAK) {
std::lock_guard lock(sym.mu);
bool is_new = !sym.file || !sym.file->is_alive;
bool is_new = !sym.file || sym.is_placeholder;
bool tie_but_higher_priority =
!is_new && sym.is_undef_weak && this->priority < sym.file->priority;