• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:   MajorLinkerVersion: 11
20CHECK:   MinorLinkerVersion: 0
21CHECK:   SizeOfCode: 512
22CHECK:   SizeOfInitializedData: 0
23CHECK:   SizeOfUninitializedData: 0
24CHECK:   AddressOfEntryPoint: 0x1000
25CHECK:   BaseOfCode: 0x1000
26CHECK:   ImageBase: 0x140000000
27CHECK:   SectionAlignment: 4096
28CHECK:   FileAlignment: 512
29CHECK:   MajorOperatingSystemVersion: 6
30CHECK:   MinorOperatingSystemVersion: 0
31CHECK:   MajorImageVersion: 0
32CHECK:   MinorImageVersion: 0
33CHECK:   MajorSubsystemVersion: 6
34CHECK:   MinorSubsystemVersion: 0
35CHECK:   SizeOfImage: 8192
36CHECK:   SizeOfHeaders: 512
37CHECK:   Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI (0x3)
38CHECK:   Characteristics [ (0x8160)
39CHECK:     IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40)
40CHECK:     IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA (0x20)
41CHECK:     IMAGE_DLL_CHARACTERISTICS_NX_COMPAT (0x100)
42CHECK:     IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE (0x8000)
43CHECK:   ]
44CHECK:   SizeOfStackReserve: 1048576
45CHECK:   SizeOfStackCommit: 4096
46CHECK:   SizeOfHeapReserve: 1048576
47CHECK:   SizeOfHeapCommit: 4096
48CHECK:   NumberOfRvaAndSize: 16
49CHECK:   DataDirectory {
50CHECK:     ExportTableRVA: 0x0
51CHECK:     ExportTableSize: 0x0
52CHECK:     ImportTableRVA: 0x0
53CHECK:     ImportTableSize: 0x0
54CHECK:     ResourceTableRVA: 0x0
55CHECK:     ResourceTableSize: 0x0
56CHECK:     ExceptionTableRVA: 0x0
57CHECK:     ExceptionTableSize: 0x0
58CHECK:     CertificateTableRVA: 0x0
59CHECK:     CertificateTableSize: 0x0
60CHECK:     BaseRelocationTableRVA: 0x0
61CHECK:     BaseRelocationTableSize: 0x0
62CHECK:     DebugRVA: 0x0
63CHECK:     DebugSize: 0x0
64CHECK:     ArchitectureRVA: 0x0
65CHECK:     ArchitectureSize: 0x0
66CHECK:     GlobalPtrRVA: 0x0
67CHECK:     GlobalPtrSize: 0x0
68CHECK:     TLSTableRVA: 0x0
69CHECK:     TLSTableSize: 0x0
70CHECK:     LoadConfigTableRVA: 0x0
71CHECK:     LoadConfigTableSize: 0x0
72CHECK:     BoundImportRVA: 0x0
73CHECK:     BoundImportSize: 0x0
74CHECK:     IATRVA: 0x0
75CHECK:     IATSize: 0x0
76CHECK:     DelayImportDescriptorRVA: 0x0
77CHECK:     DelayImportDescriptorSize: 0x0
78CHECK:     CLRRuntimeHeaderRVA: 0x0
79CHECK:     CLRRuntimeHeaderSize: 0x0
80CHECK:     ReservedRVA: 0x0
81CHECK:     ReservedSize: 0x0
82CHECK:   }
83CHECK: }
84