1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --file-headers %t | FileCheck %s
3 # RUN: obj2yaml %t | FileCheck %s --check-prefix=ROUNDTRIP
5 # CHECK: OptionalHeaderSize: 240
6 # CHECK: ImageBase: 0x140000000
8 # ROUNDTRIP: ImageBase: 5368709120
9 # ROUNDTRIP: VirtualAddress: 4096
10 # ROUNDTRIP: VirtualAddress: 8192
11 # ROUNDTRIP: VirtualAddress: 12288
15 AddressOfEntryPoint: 4096
17 SectionAlignment: 4096
19 MajorOperatingSystemVersion: 6
20 MinorOperatingSystemVersion: 0
23 MajorSubsystemVersion: 6
24 MinorSubsystemVersion: 0
25 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
26 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
27 SizeOfStackReserve: 1048576
28 SizeOfStackCommit: 4096
29 SizeOfHeapReserve: 1048576
30 SizeOfHeapCommit: 4096
32 RelativeVirtualAddress: 0
35 RelativeVirtualAddress: 0
38 RelativeVirtualAddress: 0
41 RelativeVirtualAddress: 12288
44 RelativeVirtualAddress: 0
47 RelativeVirtualAddress: 0
50 RelativeVirtualAddress: 0
53 RelativeVirtualAddress: 0
56 RelativeVirtualAddress: 0
59 RelativeVirtualAddress: 0
62 RelativeVirtualAddress: 0
65 RelativeVirtualAddress: 0
68 RelativeVirtualAddress: 0
70 DelayImportDescriptor:
71 RelativeVirtualAddress: 0
74 RelativeVirtualAddress: 0
77 Machine: IMAGE_FILE_MACHINE_ARM64
78 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
81 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
86 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
89 SectionData: 0100400800000000E4E3E3E3
91 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
94 SectionData: '0010000000200000'