Skip to content

pts/pe-setstub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pe-setstub: replace DOS stub in Win32 PE .exe
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pe-setstub contains Perl script setstub.pl to replace the DOS stub in a
Win32 PE .exe file. It works with DOS stubs of any size (even larger than
200 KiB), and the output .exe remains compatibile with all versions of
Windows (Windows NT 3.1 ... Windows 10) and Wine and Win32s as well.

Limitation: If the code uses the header mapped at ImageBase, then the output
.exe will not work, because setstub.pl moves the PE header and also
truncates it at the end of the section headers. PE .exe files generated by
most C and C++ compilers (e.g. OpenWatcom V2, MinGW GCC, TCC) just work
fine.

__END__

About

replace DOS stub in Win32 PE .exe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages