wc/le: Refuse to pack files without relocations. This should be fixed.
committer: mfx <mfx> 1048283863 +0000
This commit is contained in:
@@ -65,6 +65,8 @@ FORMAT TMT/ADAM
|
|||||||
FORMAT WATCOM/LE
|
FORMAT WATCOM/LE
|
||||||
================
|
================
|
||||||
|
|
||||||
|
- handle files without relocations
|
||||||
|
|
||||||
- the decompressors are already aligned, no need for an
|
- the decompressors are already aligned, no need for an
|
||||||
extra alignment
|
extra alignment
|
||||||
|
|
||||||
|
|||||||
@@ -274,6 +274,12 @@ void PackWcle::preprocessFixups()
|
|||||||
for (ic = jc = 0; ic < objects; ic++)
|
for (ic = jc = 0; ic < objects; ic++)
|
||||||
jc += counts[ic];
|
jc += counts[ic];
|
||||||
|
|
||||||
|
if (jc == 0)
|
||||||
|
{
|
||||||
|
// FIXME: implement this
|
||||||
|
thowCantPack("files without relocations are not supported");
|
||||||
|
}
|
||||||
|
|
||||||
ByteArray(rl, jc);
|
ByteArray(rl, jc);
|
||||||
ByteArray(srf, counts[objects+0]+1);
|
ByteArray(srf, counts[objects+0]+1);
|
||||||
ByteArray(slf, counts[objects+1]+1);
|
ByteArray(slf, counts[objects+1]+1);
|
||||||
|
|||||||
Reference in New Issue
Block a user