Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

pestub + large stub = invalid executable for WinXP (DOSX)

posted by DOS386, 01.05.2008, 05:19
(edited by DOS386 on 01.05.2008, 06:22)

> Just to be sure: did you also try the -s option? Because that one is
> supposed to ensure that the binary remains valid for NT/XP.

But why isn't it being adjusted by default ? As-is PESTUB creates a faulty PE, just DPMILD and ME/9x don't care :confused:

There are 2 (two !) problems:

- PESTUB fails to adjust SizeOfHeaders by default, problem for any stub bigger than original, including DPMIST32.BIN
- (Headers size < lowest RVA) - problem only for big stubs, cca > 3 KiB, PE needs rellocating

This has recently been discussed in other forum also :-(

> So, here's a full solution to make executables valid for HX DOS Extender and Windows XP: 1. Compile the program

But if you can compile then you should be able to raise those RVA's ...

The other solution (usable also if you don't have the PE source / can't compile it):

[MZ-stub + loader, < 3 KiB][PE ... ... ...][here additional DOS stuff]

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

 

Complete thread:

Back to the forum
Board view  Mix view
22755 Postings in 2121 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum