PE: Set header size on 64-bit too
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
bfd1f1fbfa
commit
f3e710394a
@@ -266,6 +266,11 @@ void PackW64Pep::defineSymbols(unsigned ncsection, unsigned upxsection,
|
|||||||
linker->defineSymbol("START", 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)
|
void PackW64Pep::pack(OutputFile *fo)
|
||||||
{
|
{
|
||||||
super::pack0(fo
|
super::pack0(fo
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ public:
|
|||||||
unsigned sizeof_oh, unsigned isize_isplit,
|
unsigned sizeof_oh, unsigned isize_isplit,
|
||||||
unsigned s1addr);
|
unsigned s1addr);
|
||||||
virtual void setOhDataBase(const pe_section_t *) {}
|
virtual void setOhDataBase(const pe_section_t *) {}
|
||||||
virtual void setOhHeaderSize(const pe_section_t *) {}
|
virtual void setOhHeaderSize(const pe_section_t *osection);
|
||||||
virtual void pack(OutputFile *fo);
|
virtual void pack(OutputFile *fo);
|
||||||
|
|
||||||
virtual bool canPack();
|
virtual bool canPack();
|
||||||
|
|||||||
Reference in New Issue
Block a user