1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 19:04:27 +03:00
This commit is contained in:
Rui Ueyama 2021-03-14 15:09:12 +09:00
parent 4260435ff7
commit be889b0512

View File

@ -684,7 +684,7 @@ void DynsymSection::copy_buf() {
ElfSym &esym = *(ElfSym *)(base + sym.dynsym_idx * sizeof(ElfSym));
memset(&esym, 0, sizeof(esym));
esym.st_name = name_indices[i];
esym.st_type = sym.esym->st_type;
esym.st_type = sym.get_type();
esym.st_bind = (sym.is_weak ? STB_WEAK : sym.esym->st_bind);
esym.st_size = sym.esym->st_size;