Always call buildLoader() directly after compress().

committer: mfx <mfx> 978181874 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2000-12-30 13:11:14 +00:00
parent 8ce23f15e8
commit c0bbc2216e
4 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -271,7 +271,6 @@ void PackDjgpp2::pack(OutputFile *fo)
// filter
Filter ft(opt->level);
tryFilters(&ft, ibuf, usize - data->size, text->vaddr & ~0x1ff);
buildLoader(&ft);
// compress
ph.filter = ft.id;
@@ -279,6 +278,7 @@ void PackDjgpp2::pack(OutputFile *fo)
ph.u_len = usize;
if (!compress(ibuf,obuf))
throwNotCompressible();
buildLoader(&ft);
unsigned overlapoh = findOverlapOverhead(obuf,ibuf,512);
overlapoh = (overlapoh + 0x3ff) & ~0x1ff;