Introduce Packer::relocateLoader(). This is the first step of finally getting

rid of all Packer::patchXXX() methods.
This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-20 18:10:23 +01:00
parent 141c703ed5
commit a6cb6f57d3
19 changed files with 47 additions and 21 deletions
+1 -1
View File
@@ -915,7 +915,7 @@ void PackW32Pe::pack(OutputFile *fo)
linker->defineSymbol("start_of_compressed", esi0 + ih.imagebase);
linker->defineSymbol(isdll ? "PEISDLL1" : "PEMAIN01", upxsection);
linker->relocate();
relocateLoader();
const unsigned lsize = getLoaderSize();
MemBuffer loader(lsize);