From d23d7e8775dfbbe9cd149e279f10452a35081d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Moln=C3=A1r?= Date: Tue, 11 Apr 2006 08:57:15 +0000 Subject: [PATCH] removed unneeded entry point address check committer: ml1050 1144745835 +0000 --- src/p_armpe.cpp | 2 +- src/p_w32pe.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!");