Skip to content

Commit 1706ebf

Browse files
Added 32-bit tc
1 parent e324a3b commit 1706ebf

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

lldb/test/Shell/ObjectFile/XCOFF/basic-info32.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
# CHECK-NEXT: Type: dwarf-abbrev
3030
# CHECK-NEXT: Permissions: r--
3131

32+
33+
# RUN: %lldb %t -o "image dump symtab" -o exit | FileCheck %s --check-prefix=CHECK-SYMBOL
34+
# CHECK-SYMBOL:Index UserID DSX Type File Address/Value Load Address Size Flags Name
35+
#[ 0] 4294967295 Invalid 0xffffffffffffffff 0x0000000000000000 0x00000000 errno
36+
# CHECK-SYMBOL:[ 1] 4294967295 Code 0x0000000010000320 0x0000000000000420 0x00000000 __threads_init
37+
# CHECK-SYMBOL:[ 2] 4294967295 Data 0x0000000020000920 0x000000000000003c 0x00000000 __threads_init
38+
# CHECK-SYMBOL:[ 3] 4294967295 Invalid 0x000000002000095c 0x0000000000000060 0x00000000 TOC
39+
# CHECK-SYMBOL:[ 4] 4294967295 Invalid 0x0000000010000740 0x000000000000003a 0x00000000 text
40+
# CHECK-SYMBOL:[ 5] 4294967295 Invalid 0x0000000010000740 0x000000000000003a 0x00000000 main
41+
3242
--- !XCOFF
3343
FileHeader:
3444
MagicNumber: 0x1DF
@@ -106,5 +116,91 @@ Sections:
106116
NumberOfLineNumbers: 0x0
107117
Flags: [ STYP_DWARF ]
108118
SectionData: 01110125
119+
Symbols:
120+
- Name: errno
121+
Value: 0x0
122+
Section: N_UNDEF
123+
Type: 0x0
124+
StorageClass: C_EXT
125+
NumberOfAuxEntries: 1
126+
AuxEntries:
127+
- Type: AUX_CSECT
128+
ParameterHashIndex: 0
129+
TypeChkSectNum: 0
130+
StorageMappingClass: XMC_RW
131+
SectionOrLength: 0
132+
StabInfoIndex: 0
133+
StabSectNum: 0
134+
- Name: .__threads_init
135+
Value: 0x10000320
136+
Section: .text
137+
Type: 0x20
138+
StorageClass: C_EXT
139+
NumberOfAuxEntries: 1
140+
AuxEntries:
141+
- Type: AUX_CSECT
142+
ParameterHashIndex: 0
143+
TypeChkSectNum: 0
144+
StorageMappingClass: XMC_PR
145+
SectionOrLength: 84
146+
StabInfoIndex: 0
147+
StabSectNum: 0
148+
- Name: __threads_init
149+
Value: 0x20000920
150+
Section: .data
151+
Type: 0x0
152+
StorageClass: C_EXT
153+
NumberOfAuxEntries: 1
154+
AuxEntries:
155+
- Type: AUX_CSECT
156+
ParameterHashIndex: 0
157+
TypeChkSectNum: 0
158+
StorageMappingClass: XMC_DS
159+
SectionOrLength: 12
160+
StabInfoIndex: 0
161+
StabSectNum: 0
162+
- Name: TOC
163+
Value: 0x2000095C
164+
Section: .data
165+
Type: 0x0
166+
StorageClass: C_HIDEXT
167+
NumberOfAuxEntries: 1
168+
AuxEntries:
169+
- Type: AUX_CSECT
170+
ParameterHashIndex: 0
171+
TypeChkSectNum: 0
172+
StorageMappingClass: XMC_TC0
173+
SectionOrLength: 0
174+
StabInfoIndex: 0
175+
StabSectNum: 0
176+
- Name: .text
177+
Value: 0x10000740
178+
Section: .text
179+
Type: 0x0
180+
StorageClass: C_HIDEXT
181+
NumberOfAuxEntries: 1
182+
AuxEntries:
183+
- Type: AUX_CSECT
184+
ParameterHashIndex: 0
185+
TypeChkSectNum: 0
186+
StorageMappingClass: XMC_PR
187+
SectionOrLength: 58
188+
StabInfoIndex: 0
189+
StabSectNum: 0
190+
- Name: .main
191+
Value: 0x10000740
192+
Section: .text
193+
Type: 0x0
194+
StorageClass: C_EXT
195+
NumberOfAuxEntries: 1
196+
AuxEntries:
197+
- Type: AUX_CSECT
198+
ParameterHashIndex: 0
199+
TypeChkSectNum: 0
200+
StorageMappingClass: XMC_PR
201+
SectionOrLength: 137
202+
StabInfoIndex: 0
203+
StabSectNum: 0
204+
109205
StringTable: {}
110206
...

0 commit comments

Comments
 (0)