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
+2 -2
View File
@@ -325,7 +325,7 @@ void PackVmlinuzI386::pack(OutputFile *fo)
linker->defineSymbol("src_for_decompressor", zimage_offset + lsize);
linker->defineSymbol("original_entry", physical_start);
linker->defineSymbol("stack_offset", stack_offset_during_uncompression);
linker->relocate();
relocateLoader();
MemBuffer loader(lsize);
memcpy(loader, getLoader(), lsize);
@@ -448,7 +448,7 @@ void PackBvmlinuzI386::pack(OutputFile *fo)
defineDecompressorSymbols();
linker->defineSymbol("original_entry", physical_start);
linker->defineSymbol("stack_offset", stack_offset_during_uncompression);
linker->relocate();
relocateLoader();
MemBuffer loader(lsize);
memcpy(loader, getLoader(), lsize);