diff --git a/output_chunks.cc b/output_chunks.cc index 8761aa26..a928adf6 100644 --- a/output_chunks.cc +++ b/output_chunks.cc @@ -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;