Pengyu CHEN cpy.prefers.you@gmail.com wrote:
PE header needs to be aligned in a 64k boundary, and compiler fills remaining space with zeros.
Thank you Dmitry, and now I'm clear with that. Yet another question here. I've just check the msdn page and found 64K is actually the maximum possible value of SectionAlignment and FileAlignment, then why must we choose the maximum one or it is just like this?
PE header marks the beginning of a PE module in memory, and it needs to be aligned on allocation granularity.