1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-29 11:24:36 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-27 21:51:09 +09:00
parent f5ca824a11
commit c195dd43b0

View File

@ -516,6 +516,8 @@ int main(int argc, char **argv) {
std::tie(symtab_off, strtab_off) = std::tie(symtab_off, strtab_off) =
file->write_symtab_local(buf, symtab_off, strtab_off); file->write_symtab_local(buf, symtab_off, strtab_off);
out::symtab->shdr.sh_info = symtab_off / sizeof(ELF64LE::Sym);
for (ObjectFile *file : files) for (ObjectFile *file : files)
std::tie(symtab_off, strtab_off) = std::tie(symtab_off, strtab_off) =
file->write_symtab_global(buf, symtab_off, strtab_off); file->write_symtab_global(buf, symtab_off, strtab_off);