src: rework optimizeReloc handling; cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-02-21 15:19:24 +01:00
parent 8d364c82e2
commit 4a8efd2e2f
23 changed files with 430 additions and 381 deletions
+2 -2
View File
@@ -241,7 +241,7 @@ bool PackExe::canPack() {
if (!readFileHeader())
return false;
if (file_size < 1024)
throwCantPack("file is too small");
throwCantPack("file is too small for dos/exe");
fi->seek(0x3c, SEEK_SET);
LE32 offs;
fi->readx(&offs, sizeof(offs));
@@ -249,7 +249,7 @@ bool PackExe::canPack() {
if (opt->dos_exe.force_stub)
opt->overlay = opt->COPY_OVERLAY;
else
throwCantPack("can't pack new-exe");
throwCantPack("dos/exe: can't pack new-exe");
}
return true;
}