Avoid some warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2007-07-08 11:42:45 +02:00
parent 959aaebede
commit abc71baaa6
4 changed files with 12 additions and 3 deletions
+2
View File
@@ -629,10 +629,12 @@ void PackW32Pe::pack(OutputFile *fo)
else if (opt->win32_pe.strip_relocs < 0)
opt->win32_pe.strip_relocs = (ih.imagebase >= 0x400000);
if (opt->win32_pe.strip_relocs)
{
if (ih.imagebase < 0x400000)
throwCantPack("--strip-relocs is not allowed when imagebase < 0x400000");
else
ih.flags |= RELOCS_STRIPPED;
}
if (memcmp(isection[0].name,"UPX",3) == 0)
throwAlreadyPackedByUPX();