First I would like to say hello to you all, ive been around for a while but this is my first post.

Iczelion's PE tutorial states that all PE sections are padded to 512 bytes, except the last section.

now is there a way to define a smaller section size in the PE header and remove most of the padding to decrease the size of an executable ?

Thanks for any responses and my apologies for not being completely on topic. :)
Posted on 2006-08-18 18:01:45 by paradox


now is there a way to define a smaller section size in the PE header and remove most of the padding to decrease the size of an executable ?




Try to change FileAlignment of optional header to your new size and see what happens
Posted on 2006-08-18 19:15:39 by Axial
You can use /FILEALIGN values smaller than 512, but then your executables won't work on all windows versions...
Posted on 2006-08-19 03:35:33 by f0dder