For such files, the location of section data in the file must match its location in memory when the image is loaded, so that the physical offset for section data is the same as the RVA. There are additional restrictions on image files if the SectionAlignment value in the optional header is less than the page size of the architecture. Section data must appear in order of the RVA values for the corresponding sections (as do the individual section headers in the section table). In an image file, the section data must be aligned on a boundary as specified by the FileAlignment field in the optional header. If SizeOfRawData is less than VirtualSize, the remainder is padded with zeros. The size of this data in the file is indicated by the SizeOfRawData field. The data for each section is located at the file offset that was given by the PointerToRawData field in the section header.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |