[SandboxIR][Doc] Add Quick start notes (#123992)
[llvm-project.git] / llvm / test / tools / llvm-readobj / COFF / unwind-x86_64-image.yaml
blobb9d6822a77f4a31a42b880916fda6bea7f17d84c
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)
12 # CHECK-NEXT:         ]
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
21 # CHECK-NEXT:         ]
22 # CHECK-NEXT:       }
23 # CHECK-NEXT:     }
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)
33 # CHECK-NEXT:         ]
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
40 # CHECK-NEXT:         ]
41 # CHECK-NEXT:         Handler: __gxx_personality_seh0 (0x140001070)
42 # CHECK-NEXT:       }
43 # CHECK-NEXT:     }
44 # CHECK-NEXT:   ]
46 --- !COFF
47 OptionalHeader:
48   AddressOfEntryPoint: 4128
49   ImageBase:       5368709120
50   SectionAlignment: 4096
51   FileAlignment:   512
52   MajorOperatingSystemVersion: 6
53   MinorOperatingSystemVersion: 0
54   MajorImageVersion: 0
55   MinorImageVersion: 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
64   ExportTable:
65     RelativeVirtualAddress: 0
66     Size:            0
67   ImportTable:
68     RelativeVirtualAddress: 0
69     Size:            0
70   ResourceTable:
71     RelativeVirtualAddress: 0
72     Size:            0
73   ExceptionTable:
74     RelativeVirtualAddress: 12288
75     Size:            24
76   CertificateTable:
77     RelativeVirtualAddress: 0
78     Size:            0
79   BaseRelocationTable:
80     RelativeVirtualAddress: 0
81     Size:            0
82   Debug:
83     RelativeVirtualAddress: 0
84     Size:            0
85   Architecture:
86     RelativeVirtualAddress: 0
87     Size:            0
88   GlobalPtr:
89     RelativeVirtualAddress: 0
90     Size:            0
91   TlsTable:
92     RelativeVirtualAddress: 0
93     Size:            0
94   LoadConfigTable:
95     RelativeVirtualAddress: 0
96     Size:            0
97   BoundImport:
98     RelativeVirtualAddress: 0
99     Size:            0
100   IAT:
101     RelativeVirtualAddress: 0
102     Size:            0
103   DelayImportDescriptor:
104     RelativeVirtualAddress: 0
105     Size:            0
106   ClrRuntimeHeader:
107     RelativeVirtualAddress: 0
108     Size:            0
109 header:
110   Machine:         IMAGE_FILE_MACHINE_AMD64
111   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
112 sections:
113   - Name:            .text
114     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
115     VirtualAddress:  4096
116     VirtualSize:     8
117     SectionData:     00000000
118   - Name:            .xdata
119     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
120     VirtualAddress:  8192
121     VirtualSize:     40
122     SectionData:     0204030001160B0604820000190401000462000070100000FFFF010804051E0009330000
123   - Name:            .pdata
124     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
125     VirtualAddress:  12288
126     VirtualSize:     24
127     SectionData:     101000001710000000200000201000005C1000000C200000
128 symbols:
129   - Name:            .text
130     Value:           0
131     SectionNumber:   1
132     SimpleType:      IMAGE_SYM_TYPE_NULL
133     ComplexType:     IMAGE_SYM_DTYPE_NULL
134     StorageClass:    IMAGE_SYM_CLASS_STATIC
135   - Name:            .xdata
136     Value:           0
137     SectionNumber:   2
138     SimpleType:      IMAGE_SYM_TYPE_NULL
139     ComplexType:     IMAGE_SYM_DTYPE_NULL
140     StorageClass:    IMAGE_SYM_CLASS_STATIC
141   - Name:            .pdata
142     Value:           0
143     SectionNumber:   3
144     SimpleType:      IMAGE_SYM_TYPE_NULL
145     ComplexType:     IMAGE_SYM_DTYPE_NULL
146     StorageClass:    IMAGE_SYM_CLASS_STATIC
147   - Name:            other
148     Value:           0
149     SectionNumber:   1
150     SimpleType:      IMAGE_SYM_TYPE_NULL
151     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
152     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
153   - Name:            _ZN4RAIID2Ev
154     Value:           16
155     SectionNumber:   1
156     SimpleType:      IMAGE_SYM_TYPE_NULL
157     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
158     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
159   - Name:            entry
160     Value:           32
161     SectionNumber:   1
162     SimpleType:      IMAGE_SYM_TYPE_NULL
163     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
164     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
165   - Name:            _ZN4RAIID1Ev
166     Value:           16
167     SectionNumber:   1
168     SimpleType:      IMAGE_SYM_TYPE_NULL
169     ComplexType:     IMAGE_SYM_DTYPE_NULL
170     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
171   - Name:            _Unwind_Resume
172     Value:           96
173     SectionNumber:   1
174     SimpleType:      IMAGE_SYM_TYPE_NULL
175     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
176     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
177   - Name:            __gxx_personality_seh0
178     Value:           112
179     SectionNumber:   1
180     SimpleType:      IMAGE_SYM_TYPE_NULL
181     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
182     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
183   - Name:            GCC_except_table2
184     Value:           20
185     SectionNumber:   2
186     SimpleType:      IMAGE_SYM_TYPE_NULL
187     ComplexType:     IMAGE_SYM_DTYPE_NULL
188     StorageClass:    IMAGE_SYM_CLASS_STATIC