1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-25 17:34:02 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-13 20:41:23 +09:00
parent 05e6aea2fd
commit 86045d8f69

View File

@ -743,10 +743,12 @@ std::vector<std::string_view> SharedFile::read_verdef() {
for (;;) {
if (ret.size() <= ver->vd_ndx)
ret.resize(ver->vd_ndx + 1);
auto *aux = (ElfVerdaux *)((u8 *)ver + ver->vd_aux);
ElfVerdaux *aux = (ElfVerdaux *)((u8 *)ver + ver->vd_aux);
ret[ver->vd_ndx] = strtab.data() + aux->vda_name;
if (!ver->vd_next)
break;
ver = (ElfVerdef *)((u8 *)ver + ver->vd_next);
}
return ret;