PE: Set header size on 64-bit too

This commit is contained in:
Kornel Pal
2021-12-16 06:57:39 +01:00
committed by Markus F.X.J. Oberhumer
parent bfd1f1fbfa
commit f3e710394a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -266,6 +266,11 @@ void PackW64Pep::defineSymbols(unsigned ncsection, unsigned upxsection,
linker->defineSymbol("START", upxsection);
}
void PackW64Pep::setOhHeaderSize(const pe_section_t *osection)
{
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(*osection) * oh.objects, oh.filealign);
}
void PackW64Pep::pack(OutputFile *fo)
{
super::pack0(fo