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
7 # ROUNDTRIP: VirtualAddress: 4096
8 # ROUNDTRIP: VirtualAddress: 8192
9 # ROUNDTRIP: VirtualAddress: 12288
13 AddressOfEntryPoint: 4096
15 SectionAlignment: 4096
17 MajorOperatingSystemVersion: 6
18 MinorOperatingSystemVersion: 0
21 MajorSubsystemVersion: 6
22 MinorSubsystemVersion: 0
23 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
24 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
25 SizeOfStackReserve: 1048576
26 SizeOfStackCommit: 4096
27 SizeOfHeapReserve: 1048576
28 SizeOfHeapCommit: 4096
30 RelativeVirtualAddress: 0
33 RelativeVirtualAddress: 0
36 RelativeVirtualAddress: 0
39 RelativeVirtualAddress: 12288
42 RelativeVirtualAddress: 0
45 RelativeVirtualAddress: 0
48 RelativeVirtualAddress: 0
51 RelativeVirtualAddress: 0
54 RelativeVirtualAddress: 0
57 RelativeVirtualAddress: 0
60 RelativeVirtualAddress: 0
63 RelativeVirtualAddress: 0
66 RelativeVirtualAddress: 0
68 DelayImportDescriptor:
69 RelativeVirtualAddress: 0
72 RelativeVirtualAddress: 0
75 Machine: IMAGE_FILE_MACHINE_ARM64
76 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
79 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
84 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
87 SectionData: 0100400800000000E4E3E3E3
89 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
92 SectionData: '0010000000200000'