1 # RUN: yaml2obj %s -o %t.exe
2 # RUN: llvm-readobj --unwind %t.exe | FileCheck %s
4 # CHECK: RuntimeFunction {
5 # CHECK: StartAddress: entry (0x140001020)
6 # CHECK-NEXT: EndAddress: (0x14000105C)
7 # CHECK-NEXT: UnwindInfoAddress: (0x140002008)
8 # CHECK-NEXT: UnwindInfo {
9 # CHECK-NEXT: Version: 1
10 # CHECK-NEXT: Flags [ (0x3)
11 # CHECK-NEXT: ExceptionHandler (0x1)
12 # CHECK-NEXT: TerminateHandler (0x2)
14 # CHECK-NEXT: PrologSize: 4
15 # CHECK-NEXT: FrameRegister: -
16 # CHECK-NEXT: FrameOffset: -
17 # CHECK-NEXT: UnwindCodeCount: 1
18 # CHECK-NEXT: UnwindCodes [
19 # CHECK-NEXT: 0x04: ALLOC_SMALL size=56
21 # CHECK-NEXT: Handler: __gxx_personality_seh0 (0x140001070)
27 AddressOfEntryPoint: 4128
29 SectionAlignment: 4096
31 MajorOperatingSystemVersion: 6
32 MinorOperatingSystemVersion: 0
35 MajorSubsystemVersion: 6
36 MinorSubsystemVersion: 0
37 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
38 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
39 SizeOfStackReserve: 1048576
40 SizeOfStackCommit: 4096
41 SizeOfHeapReserve: 1048576
42 SizeOfHeapCommit: 4096
44 RelativeVirtualAddress: 0
47 RelativeVirtualAddress: 0
50 RelativeVirtualAddress: 0
53 RelativeVirtualAddress: 12288
56 RelativeVirtualAddress: 0
59 RelativeVirtualAddress: 0
62 RelativeVirtualAddress: 0
65 RelativeVirtualAddress: 0
68 RelativeVirtualAddress: 0
71 RelativeVirtualAddress: 0
74 RelativeVirtualAddress: 0
77 RelativeVirtualAddress: 0
80 RelativeVirtualAddress: 0
82 DelayImportDescriptor:
83 RelativeVirtualAddress: 0
86 RelativeVirtualAddress: 0
89 Machine: IMAGE_FILE_MACHINE_AMD64
90 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
93 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
96 SectionData: C3662E0F1F8400000000000F1F4400005048890C2458C3660F1F8400000000004883EC38E8D7FFFFFFE900000000488D4C2430E8D8FFFFFF904883C438C3488944242889542424488D4C2430E8BFFFFFFF488B4C2428E805000000CC0F1F4000C3662E0F1F8400000000000F1F440000C3
98 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
101 SectionData: 0101010001020000190401000462000070100000FFFF010804051E0009330000
103 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
104 VirtualAddress: 12288
106 SectionData: 101000001710000000200000201000005C10000008200000
111 SimpleType: IMAGE_SYM_TYPE_NULL
112 ComplexType: IMAGE_SYM_DTYPE_NULL
113 StorageClass: IMAGE_SYM_CLASS_STATIC
117 SimpleType: IMAGE_SYM_TYPE_NULL
118 ComplexType: IMAGE_SYM_DTYPE_NULL
119 StorageClass: IMAGE_SYM_CLASS_STATIC
123 SimpleType: IMAGE_SYM_TYPE_NULL
124 ComplexType: IMAGE_SYM_DTYPE_NULL
125 StorageClass: IMAGE_SYM_CLASS_STATIC
129 SimpleType: IMAGE_SYM_TYPE_NULL
130 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
131 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
135 SimpleType: IMAGE_SYM_TYPE_NULL
136 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
137 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
141 SimpleType: IMAGE_SYM_TYPE_NULL
142 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
143 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
147 SimpleType: IMAGE_SYM_TYPE_NULL
148 ComplexType: IMAGE_SYM_DTYPE_NULL
149 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
150 - Name: _Unwind_Resume
153 SimpleType: IMAGE_SYM_TYPE_NULL
154 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
155 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
156 - Name: __gxx_personality_seh0
159 SimpleType: IMAGE_SYM_TYPE_NULL
160 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
161 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
162 - Name: GCC_except_table2
165 SimpleType: IMAGE_SYM_TYPE_NULL
166 ComplexType: IMAGE_SYM_DTYPE_NULL
167 StorageClass: IMAGE_SYM_CLASS_STATIC