Section in PE isStore different types of data (Code, Data, constants, resources)Different sections have different access permissions.
Section is the basic unit for storing code or data in PE files. Some data types belong to different data directories, but they are classified into the same section because their access attributes are the same. The section may occupy one or more pages, the page attributes include read-only, write-only, and read/write.
There are three types of alignment in PE:
Data Alignment in memory
In Windows, the Memory attribute is set to page. Generally, the alignment unit of a section in the memory must be at least one page, and the 32-bit system must be 4 kb (1000 h ), the 64-bit format is 8 KB (2000 h ).
Data Alignment in files
To improve disk utilization, the alignment unit is usually smaller than the memory size. The size of a physical sector is used as the alignment granularity, 512 bytes, 200 h.
Alignment of resource data in resource files
It is usually aligned in double-byte (4 bytes) mode.