diff --git a/src/p_armpe.cpp b/src/p_armpe.cpp index a98eab15..30daf05b 100644 --- a/src/p_armpe.cpp +++ b/src/p_armpe.cpp @@ -1611,7 +1611,7 @@ void PackArmPe::pack(OutputFile *fo) if (memcmp(isection[0].name,"UPX",3) == 0) throwAlreadyPackedByUPX(); - if (!opt->force && (IDSIZE(15) || ih.entry > isection[1].vaddr)) + if (!opt->force && IDSIZE(15)) throwCantPack("file is possibly packed/protected (try --force)"); if (ih.entry && ih.entry < rvamin) throwCantPack("run a virus scanner on this file!"); diff --git a/src/p_w32pe.cpp b/src/p_w32pe.cpp index de68aca0..a74b1e72 100644 --- a/src/p_w32pe.cpp +++ b/src/p_w32pe.cpp @@ -1702,7 +1702,7 @@ void PackW32Pe::pack(OutputFile *fo) if (memcmp(isection[0].name,"UPX",3) == 0) throwAlreadyPackedByUPX(); - if (!opt->force && (IDSIZE(15) || ih.entry > isection[1].vaddr)) + if (!opt->force && IDSIZE(15)) throwCantPack("file is possibly packed/protected (try --force)"); if (ih.entry && ih.entry < rvamin) throwCantPack("run a virus scanner on this file!");