1 RUN: llvm-readobj -file-headers %p/Inputs/nop.exe.coff-x86-64 | FileCheck %s 2 3 CHECK: Format: COFF-x86-64 4 CHECK: Arch: x86_64 5 CHECK: AddressSize: 64bit 6 CHECK: ImageFileHeader { 7 CHECK: Machine: IMAGE_FILE_MACHINE_AMD64 (0x8664) 8 CHECK: SectionCount: 1 9 CHECK: TimeDateStamp: 2014-01-26 03:43:56 (0x52E4847C) 10 CHECK: PointerToSymbolTable: 0x0 11 CHECK: SymbolCount: 0 12 CHECK: OptionalHeaderSize: 240 13 CHECK: Characteristics [ (0x22) 14 CHECK: IMAGE_FILE_EXECUTABLE_IMAGE (0x2) 15 CHECK: IMAGE_FILE_LARGE_ADDRESS_AWARE (0x20) 16 CHECK: ] 17 CHECK: } 18 CHECK: ImageOptionalHeader { 19 CHECK: MajorLinkerVersion: 11 20 CHECK: MinorLinkerVersion: 0 21 CHECK: SizeOfCode: 512 22 CHECK: SizeOfInitializedData: 0 23 CHECK: SizeOfUninitializedData: 0 24 CHECK: AddressOfEntryPoint: 0x1000 25 CHECK: BaseOfCode: 0x1000 26 CHECK: ImageBase: 0x140000000 27 CHECK: SectionAlignment: 4096 28 CHECK: FileAlignment: 512 29 CHECK: MajorOperatingSystemVersion: 6 30 CHECK: MinorOperatingSystemVersion: 0 31 CHECK: MajorImageVersion: 0 32 CHECK: MinorImageVersion: 0 33 CHECK: MajorSubsystemVersion: 6 34 CHECK: MinorSubsystemVersion: 0 35 CHECK: SizeOfImage: 8192 36 CHECK: SizeOfHeaders: 512 37 CHECK: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3) 38 CHECK: Characteristics [ (0x8160) 39 CHECK: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40) 40 CHECK: IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA (0x20) 41 CHECK: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT (0x100) 42 CHECK: IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE (0x8000) 43 CHECK: ] 44 CHECK: SizeOfStackReserve: 1048576 45 CHECK: SizeOfStackCommit: 4096 46 CHECK: SizeOfHeapReserve: 1048576 47 CHECK: SizeOfHeapCommit: 4096 48 CHECK: NumberOfRvaAndSize: 16 49 CHECK: DataDirectory { 50 CHECK: ExportTableRVA: 0x0 51 CHECK: ExportTableSize: 0x0 52 CHECK: ImportTableRVA: 0x0 53 CHECK: ImportTableSize: 0x0 54 CHECK: ResourceTableRVA: 0x0 55 CHECK: ResourceTableSize: 0x0 56 CHECK: ExceptionTableRVA: 0x0 57 CHECK: ExceptionTableSize: 0x0 58 CHECK: CertificateTableRVA: 0x0 59 CHECK: CertificateTableSize: 0x0 60 CHECK: BaseRelocationTableRVA: 0x0 61 CHECK: BaseRelocationTableSize: 0x0 62 CHECK: DebugRVA: 0x0 63 CHECK: DebugSize: 0x0 64 CHECK: ArchitectureRVA: 0x0 65 CHECK: ArchitectureSize: 0x0 66 CHECK: GlobalPtrRVA: 0x0 67 CHECK: GlobalPtrSize: 0x0 68 CHECK: TLSTableRVA: 0x0 69 CHECK: TLSTableSize: 0x0 70 CHECK: LoadConfigTableRVA: 0x0 71 CHECK: LoadConfigTableSize: 0x0 72 CHECK: BoundImportRVA: 0x0 73 CHECK: BoundImportSize: 0x0 74 CHECK: IATRVA: 0x0 75 CHECK: IATSize: 0x0 76 CHECK: DelayImportDescriptorRVA: 0x0 77 CHECK: DelayImportDescriptorSize: 0x0 78 CHECK: CLRRuntimeHeaderRVA: 0x0 79 CHECK: CLRRuntimeHeaderSize: 0x0 80 CHECK: ReservedRVA: 0x0 81 CHECK: ReservedSize: 0x0 82 CHECK: } 83 CHECK: } 84