PE: fix SizeOfHeaders value of Optional Header field
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
78f48d65d5
commit
1518e5bc98
+1
-2
@@ -278,8 +278,7 @@ void PackW32Pe::setOhDataBase(const pe_section_t *osection)
|
||||
|
||||
void PackW32Pe::setOhHeaderSize(const pe_section_t *osection)
|
||||
{
|
||||
(void)osection;
|
||||
oh.headersize = rvamin; // FIXME
|
||||
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(osection) * oh.objects, oh.filealign);
|
||||
}
|
||||
|
||||
void PackW32Pe::pack(OutputFile *fo)
|
||||
|
||||
Reference in New Issue
Block a user