1 # RUN: yaml2obj %s -o %t.exe
2 # RUN: llvm-readobj --unwind %t.exe | FileCheck %s
4 # CHECK: RuntimeFunction {
5 # CHECK: Function: entry (0x140001014)
6 # CHECK-NEXT: ExceptionRecord: 0x140002018
7 # CHECK-NEXT: ExceptionData {
8 # CHECK-NEXT: FunctionLength: 92
9 # CHECK-NEXT: Version: 0
10 # CHECK-NEXT: ExceptionData: Yes
11 # CHECK-NEXT: EpiloguePacked: No
12 # CHECK-NEXT: EpilogueScopes: 1
13 # CHECK-NEXT: ByteCodeLength: 8
14 # CHECK-NEXT: Prologue [
15 # CHECK-NEXT: 0xd2c4 ; str x30, [sp, #32]
16 # CHECK-NEXT: 0x03 ; sub sp, #48
17 # CHECK-NEXT: 0xe4 ; end
19 # CHECK-NEXT: EpilogueScopes [
20 # CHECK-NEXT: EpilogueScope {
21 # CHECK-NEXT: StartOffset: 11
22 # CHECK-NEXT: EpilogueStartIndex: 4
23 # CHECK-NEXT: Opcodes [
24 # CHECK-NEXT: 0xd2c4 ; ldr x30, [sp, #32]
25 # CHECK-NEXT: 0x03 ; add sp, #48
26 # CHECK-NEXT: 0xe4 ; end
30 # CHECK-NEXT: ExceptionHandler [
31 # CHECK-NEXT: Routine: __gxx_personality_seh0 (0x140001074)
32 # CHECK-NEXT: Parameter: 0x801FFFF
39 AddressOfEntryPoint: 4116
41 SectionAlignment: 4096
43 MajorOperatingSystemVersion: 6
44 MinorOperatingSystemVersion: 0
47 MajorSubsystemVersion: 6
48 MinorSubsystemVersion: 0
49 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
50 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
51 SizeOfStackReserve: 1048576
52 SizeOfStackCommit: 4096
53 SizeOfHeapReserve: 1048576
54 SizeOfHeapCommit: 4096
56 RelativeVirtualAddress: 0
59 RelativeVirtualAddress: 0
62 RelativeVirtualAddress: 0
65 RelativeVirtualAddress: 12288
68 RelativeVirtualAddress: 0
71 RelativeVirtualAddress: 0
74 RelativeVirtualAddress: 0
77 RelativeVirtualAddress: 0
80 RelativeVirtualAddress: 0
83 RelativeVirtualAddress: 0
86 RelativeVirtualAddress: 0
89 RelativeVirtualAddress: 0
92 RelativeVirtualAddress: 0
94 DelayImportDescriptor:
95 RelativeVirtualAddress: 0
98 RelativeVirtualAddress: 0
101 Machine: IMAGE_FILE_MACHINE_ARM64
102 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
105 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
108 SectionData: C0035FD6FF4300D1E00700F9FF430091C0035FD6FFC300D1FE1300F90800009008C10191E80300F9F6FFFF9701000014E07F0091080000900811009100013FD6FE1340F9FFC30091C0035FD6E00B00F9E10F00B9E07F0091080000900811009100013FD6E00B40F9E80340F900013FD6C0035FD6C0035FD6
110 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
113 SectionData: 0100400800000000E4E3E3E3040040080200800001E401E4170050100B000001D2C403E4D2C403E474100000FFFF010810083800184400000100400800000000E4E3E3E30100400800000000E4E3E3E3
115 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
116 VirtualAddress: 12288
118 SectionData: 0010000000200000041000000C200000141000001820000070100000382000007410000044200000
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_NULL
131 StorageClass: IMAGE_SYM_CLASS_STATIC
135 SimpleType: IMAGE_SYM_TYPE_NULL
136 ComplexType: IMAGE_SYM_DTYPE_NULL
137 StorageClass: IMAGE_SYM_CLASS_STATIC
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_FUNCTION
149 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
153 SimpleType: IMAGE_SYM_TYPE_NULL
154 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
155 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
156 - Name: _Unwind_Resume
159 SimpleType: IMAGE_SYM_TYPE_NULL
160 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
161 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
165 SimpleType: IMAGE_SYM_TYPE_NULL
166 ComplexType: IMAGE_SYM_DTYPE_NULL
167 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
168 - Name: __gxx_personality_seh0
171 SimpleType: IMAGE_SYM_TYPE_NULL
172 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
173 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
174 - Name: GCC_except_table2
177 SimpleType: IMAGE_SYM_TYPE_NULL
178 ComplexType: IMAGE_SYM_DTYPE_NULL
179 StorageClass: IMAGE_SYM_CLASS_STATIC