Skip to content

Commit

Permalink
Switch to smaller PE/COFF .EXE headers (1KB rather than 4KB)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfru committed Oct 20, 2019
1 parent 4282d1a commit bd39c40
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
Binary file modified v0100/bind/smlrl.exe
Binary file not shown.
Binary file modified v0100/bindp/smlrl.exe
Binary file not shown.
Binary file modified v0100/binl/smlrl
Binary file not shown.
Binary file modified v0100/binm/smlrl
Binary file not shown.
Binary file modified v0100/binw/n2f.dat
Binary file not shown.
Binary file modified v0100/binw/smlrc.dat
Binary file not shown.
Binary file modified v0100/binw/smlrcc.dat
Binary file not shown.
Binary file modified v0100/binw/smlrl.dat
Binary file not shown.
Binary file modified v0100/binw/smlrpp.dat
Binary file not shown.
4 changes: 2 additions & 2 deletions v0100/smlrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2939,8 +2939,8 @@ void RwPe(void)
imageBase = Origin & 0xFFFFF000;
if (imageBase >= 0xFFFFF000)
errSectTooBig();
hdrsz = 4096; // make the first section page-aligned in the file
// hdrsz = 1024; // traditional 1KB size of headers, 1st section isn't page-aligned in file
// hdrsz = 4096; // make the first section page-aligned in the file
hdrsz = 1024; // traditional 1KB size of headers, 1st section isn't page-aligned in file
Origin = imageBase + 4096;

PeOptionalHeader.SizeOfHeaders = hdrsz;
Expand Down

0 comments on commit bd39c40

Please sign in to comment.