wc/le: Refuse to pack files without relocations. This should be fixed.

committer: mfx <mfx> 1048283863 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2003-03-21 21:57:43 +00:00
parent b57f48d543
commit 2f8917f450
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -65,6 +65,8 @@ FORMAT TMT/ADAM
FORMAT WATCOM/LE
================
- handle files without relocations
- the decompressors are already aligned, no need for an
extra alignment
+6
View File
@@ -274,6 +274,12 @@ void PackWcle::preprocessFixups()
for (ic = jc = 0; ic < objects; ic++)
jc += counts[ic];
if (jc == 0)
{
// FIXME: implement this
thowCantPack("files without relocations are not supported");
}
ByteArray(rl, jc);
ByteArray(srf, counts[objects+0]+1);
ByteArray(slf, counts[objects+1]+1);