Nytro Posted February 19, 2009 Report Posted February 19, 2009 This specification describes the structure of executable (image) files and object files under the Windows® family of operating systems. These files are referred to as Portable Executable (PE) and Common Object File Format (COFF) files, respectively. Note: This document is provided to aid in the development of tools and applications for Windows but is not guaranteed to be a complete specification in all respects. Microsoft reserves the right to alter this document without notice.This revision of the Microsoft Portable Executable and Common Object File Format Specification replaces Revision 6.0 of this specification. This information applies for the following operating systems: Windows Server® 2008 Windows Vista® Windows Server 2003 Windows XP Windows 2000References and resources discussed here are listed at the end of this paper.For the latest information, see: http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspxContents1. General Concepts 52. Overview 63. File Headers 73.1. MS DOS Stub (Image Only) 73.2. Signature (Image Only) 73.3. COFF File Header (Object and Image) 83.3.1. Machine Types 83.3.2. Characteristics 93.4. Optional Header (Image Only) 103.4.1. Optional Header Standard Fields (Image Only) 113.4.2. Optional Header Windows-Specific Fields (Image Only) 123.4.3. Optional Header Data Directories (Image Only) 144. Section Table (Section Headers) 164.1. Section Flags 174.2. Grouped Sections (Object Only) 195. Other Contents of the File 195.1. Section Data 205.2. COFF Relocations (Object Only) 205.2.1. Type Indicators 215.3. COFF Line Numbers (Deprecated) 305.4. COFF Symbol Table 315.4.1. Symbol Name Representation 325.4.2. Section Number Values 325.4.3. Type Representation 335.4.4. Storage Class 345.5. Auxiliary Symbol Records 365.5.1. Auxiliary Format 1: Function Definitions 365.5.2. Auxiliary Format 2: .bf and .ef Symbols 375.5.3. Auxiliary Format 3: Weak Externals 375.5.4. Auxiliary Format 4: Files 385.5.5. Auxiliary Format 5: Section Definitions 385.5.6. COMDAT Sections (Object Only) 395.5.7. CLR Token Definition (Object Only) 405.6. COFF String Table 405.7. The Attribute Certificate Table (Image Only) 405.7.1. Certificate Data 425.8. Delay-Load Import Tables (Image Only) 435.8.1. The Delay-Load Directory Table 435.8.2. Attributes 435.8.3. Name 445.8.4. Module Handle 445.8.5. Delay Import Address Table 445.8.6. Delay Import Name Table 445.8.7. Delay Bound Import Address Table and Time Stamp 445.8.8. Delay Unload Import Address Table 446. Special Sections 446.1. The .debug Section 476.1.1. Debug Directory (Image Only) 476.1.2. Debug Type 486.1.3. .debug$F (Object Only) 496.1.4. .debug$S (Object Only) 496.1.5. .debug$P (Object Only) 496.1.6. .debug$T (Object Only) 496.1.7. Linker Support for Microsoft Debug Information 496.2. The .drectve Section (Object Only) 496.3. The .edata Section (Image Only) 506.3.1. Export Directory Table 516.3.2. Export Address Table 516.3.3. Export Name Pointer Table 526.3.4. Export Ordinal Table 526.3.5. Export Name Table 536.4. The .idata Section 536.4.1. Import Directory Table 536.4.2. Import Lookup Table 546.4.3. Hint/Name Table 546.4.4. Import Address Table 556.5. The .pdata Section 556.6. The .reloc Section (Image Only) 566.6.1. Base Relocation Block 566.6.2. Base Relocation Types 566.7. The .tls Section 576.7.1. The TLS Directory 586.7.2. TLS Callback Functions 596.8. The Load Configuration Structure (Image Only) 606.8.1. Load Configuration Directory 606.8.2. Load Configuration Layout 606.9. The .rsrc Section 616.9.1. Resource Directory Table 626.9.2. Resource Directory Entries 636.9.3. Resource Directory String 636.9.4. Resource Data Entry 636.10. The .cormeta Section (Object Only) 636.10.1. The .sxdata Section 647. Archive (Library) File Format 647.1. Archive File Signature 657.2. Archive Member Headers 657.3. First Linker Member 667.4. Second Linker Member 667.5. Longnames Member 678. Import Library Format 678.1. Import Header 688.2. Import Type 688.3. Import Name Type 69References 69Download:http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v8.docx Quote