Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there is a stub for MS-DOS in PE files? [closed]

In recent versions of PE files there is a stub to show for MS DOS users the sentence This program can not be run in DOS mode. Why such message still exists althogh it wastes about 38 bytes? Is there any one still uses MS-DOS?

like image 537
Aan Avatar asked Oct 21 '11 17:10

Aan


1 Answers

It's still there because there's no easy way to remove it without breaking the file format, and nobody seems to think 38 bytes per executable is worth the trouble. The requirements on section alignment nearly always "waste" a lot more than that anyway.

like image 109
Jerry Coffin Avatar answered Sep 23 '22 05:09

Jerry Coffin