Small cosmetic changes.
committer: mfx <mfx> 1142302586 +0000
This commit is contained in:
+5
-4
@@ -1564,11 +1564,12 @@ void PackArmPe::pack(OutputFile *fo)
|
|||||||
// check the PE header
|
// check the PE header
|
||||||
// FIXME: add more checks
|
// FIXME: add more checks
|
||||||
if (!opt->force && (
|
if (!opt->force && (
|
||||||
ih.opthdrsize != 0xE0
|
(ih.cpu != 0x1c0)
|
||||||
|| (ih.flags & EXECUTABLE) == 0
|
|| (ih.opthdrsize != 0xe0)
|
||||||
|| ih.subsystem != 9
|
|| ((ih.flags & EXECUTABLE) == 0)
|
||||||
|
|| (ih.subsystem != 9)
|
||||||
|| (ih.entry == 0 && !isdll)
|
|| (ih.entry == 0 && !isdll)
|
||||||
|| ih.ddirsentries != 16
|
|| (ih.ddirsentries != 16)
|
||||||
// || IDSIZE(PEDIR_EXCEPTION) // is this used on arm?
|
// || IDSIZE(PEDIR_EXCEPTION) // is this used on arm?
|
||||||
// || IDSIZE(PEDIR_COPYRIGHT)
|
// || IDSIZE(PEDIR_COPYRIGHT)
|
||||||
))
|
))
|
||||||
|
|||||||
+4
-4
@@ -1676,12 +1676,12 @@ void PackW32Pe::pack(OutputFile *fo)
|
|||||||
// check the PE header
|
// check the PE header
|
||||||
// FIXME: add more checks
|
// FIXME: add more checks
|
||||||
if (!opt->force && (
|
if (!opt->force && (
|
||||||
ih.cpu < 0x14c || ih.cpu > 0x150
|
(ih.cpu < 0x14c || ih.cpu > 0x150)
|
||||||
|| ih.opthdrsize != 0xE0
|
|| (ih.opthdrsize != 0xe0)
|
||||||
|| (ih.flags & EXECUTABLE) == 0
|
|| ((ih.flags & EXECUTABLE) == 0)
|
||||||
|| (ih.subsystem != 2 && ih.subsystem != 3 && ih.subsystem != 1)
|
|| (ih.subsystem != 2 && ih.subsystem != 3 && ih.subsystem != 1)
|
||||||
|| (ih.entry == 0 && !isdll)
|
|| (ih.entry == 0 && !isdll)
|
||||||
|| ih.ddirsentries != 16
|
|| (ih.ddirsentries != 16)
|
||||||
|| IDSIZE(PEDIR_EXCEPTION) // is this used on i386?
|
|| IDSIZE(PEDIR_EXCEPTION) // is this used on i386?
|
||||||
// || IDSIZE(PEDIR_COPYRIGHT)
|
// || IDSIZE(PEDIR_COPYRIGHT)
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user