misc: improve upx_testsuite; cmake update
This commit is contained in:
@@ -241,6 +241,7 @@ void PackW32PeI386::addNewRelocations(Reloc &rel, unsigned base) {
|
||||
void PackW32PeI386::setOhDataBase(const pe_section_t *osection) { oh.database = osection[2].vaddr; }
|
||||
|
||||
void PackW32PeI386::setOhHeaderSize(const pe_section_t *osection) {
|
||||
// SizeOfHeaders
|
||||
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(*osection) * oh.objects, oh.filealign);
|
||||
}
|
||||
|
||||
|
||||
@@ -231,6 +231,7 @@ void PackW64PeAmd64::defineSymbols(unsigned ncsection, unsigned upxsection, unsi
|
||||
}
|
||||
|
||||
void PackW64PeAmd64::setOhHeaderSize(const pe_section_t *osection) {
|
||||
// SizeOfHeaders
|
||||
oh.headersize = ALIGN_UP(pe_offset + sizeof(oh) + sizeof(*osection) * oh.objects, oh.filealign);
|
||||
}
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ void PackW64PeArm64::defineSymbols(unsigned ncsection, unsigned upxsection, unsi
|
||||
}
|
||||
|
||||
void PackW64PeArm64::setOhHeaderSize(const pe_section_t *osection) {
|
||||
// SizeOfHeaders
|
||||
UNUSED(osection);
|
||||
throwCantPack("not yet implemented");
|
||||
}
|
||||
|
||||
@@ -217,6 +217,7 @@ void PackWinCeArm::defineSymbols(unsigned ncsection, unsigned, unsigned, unsigne
|
||||
void PackWinCeArm::setOhDataBase(const pe_section_t *osection) { oh.database = osection[2].vaddr; }
|
||||
|
||||
void PackWinCeArm::setOhHeaderSize(const pe_section_t *osection) {
|
||||
// SizeOfHeaders
|
||||
oh.headersize = osection[1].rawdataptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user