Executable file is loaded technology
- Author
- HuQiuQiong
- Advisor
- LiYi
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP316 Operating system
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 30
- Citations
- 1
Abstract
The executable file is the most important document in an operating system type, it is the real implementation of the operating system program. Executable program running speed, size, resources occupancy and program portability, scalability and so on with the definition of the executable file format and loading process are closely related. Windows as the most widely used operating system in the application market, study its executable file format and executable file to load the connection process, to understand the mechanism of the system behind a lot of good use to write high-performance programs and some hacking techniques helpful. Firstly, starting from the storage structure of the Windows system, the Windows process virtual address space of role and basic partition; analysis of the Windows operating system virtual memory, physical memory, organizational management, and the mapping between them the way; analysis of shared The structure of the memory area, the principles and the process of establishing. Followed by analysis of the overall framework of the PE format, and each part of the meaning of existence and the role played by the function to load and link process, focusing on analysis of the head, the data directory, Import Table Outport Tabel structure and role. Then run through an executable program startup process, elaborated EXE file initialization DLL, the DLL loading time, as well as the loading process: the establishment of a shared memory area Section Section mapped to process virtual space, loaded into the detailed process of the physical disk. Finally, in order to verify the correctness of the front of the PE file loading and enforcement mechanisms to understand the subject application of the mechanism to design a Windows standard API-based user-level single-process migration project, selected to do the project because: the process of migration uninterrupted operation of one of the key technologies to protect critical data and services, it is reasonable and effective use of resources to support the system dynamic load balancing, one of the key technologies to improve overall system performance and system availability, based on the most widely used Windows operating system. , research in this area are few. Eventually achieve the basic functions of the prototype of the project design thread injection technologies such as DES data encryption, and the testing and analysis, the ultimate proof that the PE executable files in the Windows system load and execute mechanism understanding is correct. In addition, I hope that the future can do more research in this area, to make this prototype further improved, and can be applied to the dynamic load balancing, disaster backup cluster system and other fields.
Table of contents
Summary 4-5
ABSTRACT 5-9
chapter the introduction 9-13
1.1 subject background 9-10 < br /> 1.2 This paper studies significance 10-11
1.3 paper work the 11-12
1.4 papers organizational structures 12-13
Chapter II technology foundation 13-25
2.1 Basic concept the 2.1.1 executable files nbsp 13-15
; 13
2.1.2 loaded 13-14
2.1.3 base and relative addresses 14
2.1.4 relocation 14
2.1.5 process 14-15
2.1.6 thread 15
2.2 Windows memory management mechanism 15-25
2.2.1 virtual memory 15-16
2.2.2 process virtual address space 16-18
2.2.3 kernel to user space management 18-20
2.2.4 kernel on physical storage management 20-21
2.2.5 virtual memory page physical memory mapping 21-22
2.2.6 shared mapped area (Section) 22-25
detailed analysis of the third chapter of the PE file format 25-38
3.1 Introduction to PE file format 25-26
the 3.2 PE File approximate layout 26-38
3.2.1 file header 27-30
3.2.2 PE segment table (The Section Table) 30
3.2.3 commonly Sections 30-38
Chapter WINDOWS system executable file loading process 38-59
4.1 to run an executable program, the whole process 38-43
4.1.1 First phase: open the destination image file, create Section 38-39
4.1.2 Second stage: to create a kernel process object 39-40
4.1 .3 Phase III: Create the initial thread 40-41
4.1.4 Fourth stage: Notification Windows subsystem 41-42
4.1.5 fifth stage: start the initial thread 42
4.1.6 sixth stage: user-space initialization and DLL link 42-43
4.2 load executable files are found; 43-48
4.2.1 whether the executable file format nbsp PE; 43
4.2.2 shared mapped area Section 43-45
4.2.3 nbsp The shared mapping District mapped to user address space of the process; 45-46
4.2.4 allocate physical page and establish the actual page mapping 46-48
4.2.5.ImportTable logic 48
the 4.3 loading system DLL 48
4.4 load other DLL files 48-59
4.4.1 the PEB in the data members 49
4.4.2 DLL loading process 49-59
Chapter WINDOWS system under single process migration project 59-75, 5.1 overall design
60-61
5.1.1 overall block diagram 60
5.1.2 Overall Structure 60-61
5.2 major file formats and Global data structure the 61-64
5.3 sub-module specific design and realization 64-73
the 5.3.1 Client main module (CkptManager) 64-65
5.3.2 Ckpt.dll module 65-70
5.3.3 The NetClient module 70
5.3.4 NetSever module 70-71
the 5.3.5 RecvManager module 71
5.3.6 Recv.dll module 71-73
5.4 functional testing and analysis 73-75
sixth Chapter Summary and Outlook 75-76
Acknowledgements to References 76-77
77-79
Related dissertations
- Analyze Financing Service Rural Credit Cooperative Giving to Small and Medium-sized Enterprises
- Metallothionein MT-2A Gene Promoter Polymorphism Analysis of Human Blood Lead, Blood Cadmium Load Detection and Association Studies
- Dose-effect Relationships Study of Moxibustion on Resistance to Sports Fatigue
- Research and Application on the Core Control System of Steam Turbine
- The Analysis on Dynamic Response of Single Pipe Pile Based on Shaking Table Model Test
- Durability of Damaged Structural Concrete
- Study of Axial Compressive Mechanical Behavior of Lightweight Aggregate Concrete-filled Steel Tubular Columns under Normal Temperature and after Fire
- Experimental Study on Underwater Explosion Bubble Loads and Damage on the Structure Nearby
- Preliminary Study on Strengthening Design Theory and Decision Making Methods of Medium/Short Span Concrete Beam Bridges
- Completed Status and Detail Components Analysis of Long Span Suspension Bridge
- Cont Shenhua Huanghua Port System Reform
- Research on the Thermodynamics of High-speed Spindle Based on Matlab
- The Technics Research of Roll Forging Billet and Molding in Mining Scraper
- Experimental Research on the Grinding and Frictional Wear Mechanism of Cemented Carbide
- Study on Lifting Arm of EBZ220Roadheader in Analysis of Load, Stress and Strain and Structural Improvement
- Preparation and Photocatalysis of Polyimide/metal Oxide Composite Thin Films
- The Preparation of Carbonyl Iron Based Microwave Absorber for Isolator Load
- Simulation of the Transfer Process during Friction of the PTFE Composites
- Study of Drift Tube Sedimentation Method of Crossing the River
- Chloride Diffusion in Nano-concrete under the Effects of Scouring and Loading