The order in which PE files are executed

Source: Internet
Author: User

When a PE file is executed, the PE loader first checks the offset of the PE header in the DOS MZ header. If found, jumps directly to the location of the PE header.

When the PE loader jumps to the PE header, the second step is to check if the PE header is valid. If the PE header is valid, jump to the tail of the PE header.

The section table follows the end of the PE header. The PE loader begins reading the section information in the section table after the second step, and uses the file mapping method to map the sections to memory, along with the read and write properties of the specified section in the section.

After the PE file is mapped into memory, the PE loader will continue to process the logical portion of the PE file similar to import table (input tables).

The order in which PE files are executed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.