LZMA for dos/exe integration work. Does not work yet.

This commit is contained in:
László Molnár
2007-02-12 15:12:36 +01:00
parent b62573ae8f
commit 2255b32e45
5 changed files with 1695 additions and 1565 deletions
+8
View File
@@ -272,6 +272,14 @@ void Packer::defineDecompressorSymbols()
linker->defineSymbol("lzma_u_len", ph.u_len);
unsigned stack = getDecompressorWrkmemSize();
linker->defineSymbol("lzma_stack_adjust", 0u - stack);
if (ph.format == UPX_F_DOS_EXE)
{
linker->defineSymbol("lzma_properties_hi", properties / 65536);
// -2 for properties
linker->defineSymbol("lzma_c_len_hi", (ph.c_len - 2) / 65536);
linker->defineSymbol("lzma_u_len_hi", ph.u_len / 65536);
}
}
}