pestub + large stub = invalid executable for WinXP (DOSX)
> 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 
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:
- pestub + large stub = invalid executable for WinXP - grompe, 28.04.2008, 11:44
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- pestub + large stub = invalid executable for WinXP - Japheth, 28.04.2008, 11:55
- The -s option doesn't help with large stub - grompe, 28.04.2008, 12:02
- pestub + large stub = invalid executable for WinXP - DOS386, 01.05.2008, 05:19
- Thanks, but there's no need to search for another solution - grompe, 01.05.2008, 17:48
- Thanks, but there's no need to search for another solution - DOS386, 02.05.2008, 21:43
- Thanks, but there's no need to search for another solution - grompe, 01.05.2008, 17:48
- pestub + large stub = invalid executable for WinXP - Japheth, 28.04.2008, 12:29
- DOS data is just a stub without MZ header - grompe, 28.04.2008, 12:37
- Method 1 verified and works! Solution - grompe, 30.04.2008, 12:41
- pestub + large stub = invalid executable for WinXP - Rugxulo, 01.05.2008, 05:48
- Sigh... Still not fixed - grompe, 28.01.2009, 20:51
- Sigh... Still not fixed - Japheth, 30.01.2009, 17:28
- Sigh... Still not fixed - ecm, 30.01.2009, 17:56
- Miscounted, don't take it seriously. - grompe, 30.01.2009, 22:42
- Sigh... Still not fixed - Japheth, 30.01.2009, 17:28
- pestub + large stub = invalid executable for WinXP - Japheth, 28.04.2008, 11:55
Mix view