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