1
1
mirror of https://github.com/rui314/mold.git synced 2025-01-03 22:36:34 +03:00
This commit is contained in:
Rui Ueyama 2021-02-22 00:22:19 +09:00
parent fd6de2d258
commit 6ef025b6d4

View File

@ -878,13 +878,14 @@ void SharedFile::parse() {
continue;
std::string_view name = symbol_strtab.data() + esyms[i].st_name;
Symbol *sym = Symbol::intern(name);
if (esyms[i].is_defined()) {
elf_syms.push_back(&esyms[i]);
versyms.push_back(vers.empty() ? 1 : vers[i]);
symbols.push_back(Symbol::intern(name));
symbols.push_back(sym);
} else {
undefs.push_back(Symbol::intern(name));
undefs.push_back(sym);
}
}