Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

CauseWay DOS extender v5 (Announce)

posted by tkchia Homepage, 05.04.2025, 07:41

Hello DosWorld,

> > Currently my lfanew utility can un-stubify and re-stubify
> > PE programs, but it expressly does not support LE/LX programs yet
> > (this is a non-trivial task).
> What you mean? (May be I miss something?)

The LE/LX portion contains a number of file offsets which are relative to the start of the whole file. So if I change an MZ stub to an MZ stub of different size, then I need to adjust these offsets. (I think pmwbind handles one of these offsets, but not all.)

If I simply change the MZ stub and leave the LE/LX part unchanged, the resulting program will not work.

Thank you!

---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

Back to the forum
Board view  Mix view
22477 Postings in 2087 Threads, 400 registered users, 124 users online (1 registered, 123 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum