1 # RUN: yaml2obj %s -o %t.exe
2 # RUN: llvm-readobj --unwind %t.exe | FileCheck %s
4 # CHECK-LABEL: UnwindInformation [
5 # CHECK-NEXT: RuntimeFunction {
6 # CHECK-NEXT: StartAddress: _ZN4RAIID2Ev (0x140001010)
7 # CHECK-NEXT: EndAddress: (0x140001017)
8 # CHECK-NEXT: UnwindInfoAddress: .xdata (0x140002000)
9 # CHECK-NEXT: UnwindInfo {
10 # CHECK-NEXT: Version: 2
11 # CHECK-NEXT: Flags [ (0x0)
13 # CHECK-NEXT: PrologSize: 4
14 # CHECK-NEXT: FrameRegister: -
15 # CHECK-NEXT: FrameOffset: -
16 # CHECK-NEXT: UnwindCodeCount: 3
17 # CHECK-NEXT: UnwindCodes [
18 # CHECK-NEXT: 0x01: EPILOG atend=yes, length=0x1
19 # CHECK-NEXT: 0x0B: EPILOG offset=0xB
20 # CHECK-NEXT: 0x04: ALLOC_SMALL size=72
24 # CHECK-NEXT: RuntimeFunction {
25 # CHECK-NEXT: StartAddress: entry (0x140001020)
26 # CHECK-NEXT: EndAddress: (0x14000105C)
27 # CHECK-NEXT: UnwindInfoAddress: (0x14000200C)
28 # CHECK-NEXT: UnwindInfo {
29 # CHECK-NEXT: Version: 1
30 # CHECK-NEXT: Flags [ (0x3)
31 # CHECK-NEXT: ExceptionHandler (0x1)
32 # CHECK-NEXT: TerminateHandler (0x2)
34 # CHECK-NEXT: PrologSize: 4
35 # CHECK-NEXT: FrameRegister: -
36 # CHECK-NEXT: FrameOffset: -
37 # CHECK-NEXT: UnwindCodeCount: 1
38 # CHECK-NEXT: UnwindCodes [
39 # CHECK-NEXT: 0x04: ALLOC_SMALL size=56
41 # CHECK-NEXT: Handler: __gxx_personality_seh0 (0x140001070)
48 AddressOfEntryPoint: 4128
50 SectionAlignment: 4096
52 MajorOperatingSystemVersion: 6
53 MinorOperatingSystemVersion: 0
56 MajorSubsystemVersion: 6
57 MinorSubsystemVersion: 0
58 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
59 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
60 SizeOfStackReserve: 1048576
61 SizeOfStackCommit: 4096
62 SizeOfHeapReserve: 1048576
63 SizeOfHeapCommit: 4096
65 RelativeVirtualAddress: 0
68 RelativeVirtualAddress: 0
71 RelativeVirtualAddress: 0
74 RelativeVirtualAddress: 12288
77 RelativeVirtualAddress: 0
80 RelativeVirtualAddress: 0
83 RelativeVirtualAddress: 0
86 RelativeVirtualAddress: 0
89 RelativeVirtualAddress: 0
92 RelativeVirtualAddress: 0
95 RelativeVirtualAddress: 0
98 RelativeVirtualAddress: 0
101 RelativeVirtualAddress: 0
103 DelayImportDescriptor:
104 RelativeVirtualAddress: 0
107 RelativeVirtualAddress: 0
110 Machine: IMAGE_FILE_MACHINE_AMD64
111 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
114 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
117 SectionData: 00000000
119 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
122 SectionData: 0204030001160B0604820000190401000462000070100000FFFF010804051E0009330000
124 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
125 VirtualAddress: 12288
127 SectionData: 101000001710000000200000201000005C1000000C200000
132 SimpleType: IMAGE_SYM_TYPE_NULL
133 ComplexType: IMAGE_SYM_DTYPE_NULL
134 StorageClass: IMAGE_SYM_CLASS_STATIC
138 SimpleType: IMAGE_SYM_TYPE_NULL
139 ComplexType: IMAGE_SYM_DTYPE_NULL
140 StorageClass: IMAGE_SYM_CLASS_STATIC
144 SimpleType: IMAGE_SYM_TYPE_NULL
145 ComplexType: IMAGE_SYM_DTYPE_NULL
146 StorageClass: IMAGE_SYM_CLASS_STATIC
150 SimpleType: IMAGE_SYM_TYPE_NULL
151 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
152 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
156 SimpleType: IMAGE_SYM_TYPE_NULL
157 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
158 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
162 SimpleType: IMAGE_SYM_TYPE_NULL
163 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
164 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
168 SimpleType: IMAGE_SYM_TYPE_NULL
169 ComplexType: IMAGE_SYM_DTYPE_NULL
170 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
171 - Name: _Unwind_Resume
174 SimpleType: IMAGE_SYM_TYPE_NULL
175 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
176 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
177 - Name: __gxx_personality_seh0
180 SimpleType: IMAGE_SYM_TYPE_NULL
181 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
182 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
183 - Name: GCC_except_table2
186 SimpleType: IMAGE_SYM_TYPE_NULL
187 ComplexType: IMAGE_SYM_DTYPE_NULL
188 StorageClass: IMAGE_SYM_CLASS_STATIC