Skip to content

Commit

Permalink
[ObjectYAML][ELF] Fix misspelling in Elf_Verdaux var name (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniofrighetto committed Nov 8, 2024
1 parent c3c2f46 commit f7eba08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/ObjectYAML/ELFEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1665,13 +1665,13 @@ void ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader,
CBA.write((const char *)&VerDef, sizeof(Elf_Verdef));

for (size_t J = 0; J < E.VerNames.size(); ++J, ++AuxCnt) {
Elf_Verdaux VernAux;
VernAux.vda_name = DotDynstr.getOffset(E.VerNames[J]);
Elf_Verdaux VerdAux;
VerdAux.vda_name = DotDynstr.getOffset(E.VerNames[J]);
if (J == E.VerNames.size() - 1)
VernAux.vda_next = 0;
VerdAux.vda_next = 0;
else
VernAux.vda_next = sizeof(Elf_Verdaux);
CBA.write((const char *)&VernAux, sizeof(Elf_Verdaux));
VerdAux.vda_next = sizeof(Elf_Verdaux);
CBA.write((const char *)&VerdAux, sizeof(Elf_Verdaux));
}
}

Expand Down

0 comments on commit f7eba08

Please sign in to comment.