patchFilter32 added.

committer: ml1050 <ml1050> 976877022 +0000
This commit is contained in:
László Molnár
2000-12-15 10:43:42 +00:00
parent 4b8385856e
commit afcbf46519
6 changed files with 21 additions and 36 deletions
+1 -8
View File
@@ -329,14 +329,7 @@ void PackDjgpp2::pack(OutputFile *fo)
// patch loader
patchPackHeader(loader,lsize);
patch_le32(loader,lsize,"ENTR",coff_hdr.a_entry);
if (ft.id)
{
assert(ft.calls > 0);
if (ft.id > 0x20)
patch_le16(loader,lsize,"??",'?' + (ft.cto << 8));
patch_le32(loader,lsize,"TEXL",(ft.id & 0xf) % 3 == 0 ? ft.calls :
ft.lastcall - ft.calls * 4);
}
patchFilter32(ft, loader, lsize);
patch_le32(loader,lsize,"BSSL",overlapoh/4);
assert(bss->vaddr == ((size + 0x1ff) &~ 0x1ff) + (text->vaddr &~ 0x1ff));
patch_le32(loader,lsize,"OUTP",text->vaddr &~ 0x1ff);