Start major refactoring.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-06-19 19:20:50 +02:00
parent c42fb54bc6
commit bf5cbfffc2
53 changed files with 5150 additions and 1816 deletions
+3 -1
View File
@@ -1666,7 +1666,7 @@ int PackW32Pe::buildLoader(const Filter *ft)
icondir_count > 1 ? (icondir_count == 2 ? "PEICONS1" : "PEICONS2") : "",
tmp_tlsindex ? "PETLSHAK" : "",
"PEMAIN02",
getDecompressor(),
getDecompressorSections(),
/*multipass ? "PEMULTIP" : */ "",
"PEMAIN10",
NULL
@@ -1713,6 +1713,7 @@ int PackW32Pe::buildLoader(const Filter *ft)
"IDENTSTR,UPX1HEAD",
NULL
);
freezeLoader();
return getLoaderSize();
}
@@ -2031,6 +2032,7 @@ void PackW32Pe::pack(OutputFile *fo)
if (texv)
patch_le32(loader, codesize, "TEXV", texv);
}
patchDecompressor(loader, codesize);
if (tlsindex)
{
// in case of overlapping decompression, this hack is needed,