More work so that watom/le now uses compressWithFilters().

This commit is contained in:
Markus F.X.J. Oberhumer
2006-12-06 11:08:32 +01:00
parent ae945ed315
commit f2b9dff596
21 changed files with 158 additions and 157 deletions
+3 -3
View File
@@ -68,7 +68,7 @@ const int *PackVmlinuxI386::getFilters() const
{
static const int filters[] = {
0x49, 0x46,
-1 };
FT_END };
return filters;
}
@@ -358,7 +358,7 @@ void PackVmlinuxI386::pack(OutputFile *fo)
ph.u_len = phdri[0].p_offset;
fi->seek(0, SEEK_SET);
fi->readx(ibuf, ph.u_len);
compress(ibuf, obuf);
compress(ibuf, ph.u_len, obuf);
while (0!=*p++) ;
shdro[2].sh_name = ptr_diff(p, shstrtab);
@@ -383,7 +383,7 @@ void PackVmlinuxI386::pack(OutputFile *fo)
ph.level = 1;
}
}
compress(ibuf, obuf, &cconf);
compress(ibuf, ph.u_len, obuf, &cconf);
ph.level = old_level;
// while (0!=*p++) ; // name is the same