• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-readobj --section-headers %p/Inputs/basic.o | \
2# RUN: FileCheck --check-prefix=SEC32 %s
3
4# RUN: llvm-readobj --section-headers %p/Inputs/basic64.o | \
5# RUN: FileCheck --check-prefix=SEC64 %s
6
7# SEC32:     File: {{.*}}basic.o
8# SEC32-NEXT:  Format: aixcoff-rs6000
9# SEC32-NEXT:  Arch: powerpc
10# SEC32-NEXT:  AddressSize: 32bit
11# SEC32-NEXT:  Sections [
12# SEC32-NEXT:    Section {
13# SEC32-NEXT:      Index: 1
14# SEC32-NEXT:      Name: .text
15# SEC32-NEXT:      PhysicalAddress: 0x0
16# SEC32-NEXT:      VirtualAddress: 0x0
17# SEC32-NEXT:      Size: 0x100
18# SEC32-NEXT:      RawDataOffset: 0x200
19# SEC32-NEXT:      RelocationPointer: 0x3D8
20# SEC32-NEXT:      LineNumberPointer: 0x4E6
21# SEC32-NEXT:      NumberOfRelocations: 8
22# SEC32-NEXT:      NumberOfLineNumbers: 12
23# SEC32-NEXT:      Type: STYP_TEXT (0x20)
24# SEC32-NEXT:    }
25# SEC32-NEXT:    Section {
26# SEC32-NEXT:      Index: 2
27# SEC32-NEXT:      Name: .data
28# SEC32-NEXT:      PhysicalAddress: 0x100
29# SEC32-NEXT:      VirtualAddress: 0x100
30# SEC32-NEXT:      Size: 0x68
31# SEC32-NEXT:      RawDataOffset: 0x300
32# SEC32-NEXT:      RelocationPointer: 0x428
33# SEC32-NEXT:      LineNumberPointer: 0x0
34# SEC32-NEXT:      NumberOfRelocations: 19
35# SEC32-NEXT:      NumberOfLineNumbers: 0
36# SEC32-NEXT:      Type: STYP_DATA (0x40)
37# SEC32-NEXT:    }
38# SEC32-NEXT:    Section {
39# SEC32-NEXT:      Index: 3
40# SEC32-NEXT:      Name: .bss
41# SEC32-NEXT:      PhysicalAddress: 0x168
42# SEC32-NEXT:      VirtualAddress: 0x168
43# SEC32-NEXT:      Size: 0x4
44# SEC32-NEXT:      RawDataOffset: 0x0
45# SEC32-NEXT:      RelocationPointer: 0x0
46# SEC32-NEXT:      LineNumberPointer: 0x0
47# SEC32-NEXT:      NumberOfRelocations: 0
48# SEC32-NEXT:      NumberOfLineNumbers: 0
49# SEC32-NEXT:      Type: STYP_BSS (0x80)
50# SEC32-NEXT:    }
51# SEC32-NEXT:    Section {
52# SEC32-NEXT:      Index: 4
53# SEC32-NEXT:      Name: .tdata
54# SEC32-NEXT:      PhysicalAddress: 0x0
55# SEC32-NEXT:      VirtualAddress: 0x0
56# SEC32-NEXT:      Size: 0x4
57# SEC32-NEXT:      RawDataOffset: 0x368
58# SEC32-NEXT:      RelocationPointer: 0x47A
59# SEC32-NEXT:      LineNumberPointer: 0x0
60# SEC32-NEXT:      NumberOfRelocations: 0
61# SEC32-NEXT:      NumberOfLineNumbers: 0
62# SEC32-NEXT:      Type: STYP_TDATA (0x400)
63# SEC32-NEXT:    }
64# SEC32-NEXT:    Section {
65# SEC32-NEXT:      Index: 5
66# SEC32-NEXT:      Name: .tbss
67# SEC32-NEXT:      PhysicalAddress: 0x4
68# SEC32-NEXT:      VirtualAddress: 0x4
69# SEC32-NEXT:      Size: 0x8
70# SEC32-NEXT:      RawDataOffset: 0x0
71# SEC32-NEXT:      RelocationPointer: 0x0
72# SEC32-NEXT:      LineNumberPointer: 0x0
73# SEC32-NEXT:      NumberOfRelocations: 0
74# SEC32-NEXT:      NumberOfLineNumbers: 0
75# SEC32-NEXT:      Type: STYP_TBSS (0x800)
76# SEC32-NEXT:    }
77# SEC32-NEXT:    Section {
78# SEC32-NEXT:      Index: 6
79# SEC32-NEXT:      Name: .debug
80# SEC32-NEXT:      PhysicalAddress: 0x0
81# SEC32-NEXT:      VirtualAddress: 0x0
82# SEC32-NEXT:      Size: 0x6C
83# SEC32-NEXT:      RawDataOffset: 0x36C
84# SEC32-NEXT:      RelocationPointer: 0x0
85# SEC32-NEXT:      LineNumberPointer: 0x0
86# SEC32-NEXT:      NumberOfRelocations: 0
87# SEC32-NEXT:      NumberOfLineNumbers: 0
88# SEC32-NEXT:      Type: STYP_DEBUG (0x2000)
89# SEC32-NEXT:    }
90# SEC32-NEXT:  ]
91
92
93# SEC64:     File: {{.*}}basic64.o
94# SEC64-NEXT:  Format: aix5coff64-rs6000
95# SEC64-NEXT:  Arch: powerpc64
96# SEC64-NEXT:  AddressSize: 64bit
97# SEC64-NEXT:  Sections [
98# SEC64-NEXT:    Section {
99# SEC64-NEXT:      Index: 1
100# SEC64-NEXT:      Name: .text
101# SEC64-NEXT:      PhysicalAddress: 0x0
102# SEC64-NEXT:      VirtualAddress: 0x0
103# SEC64-NEXT:      Size: 0x100
104# SEC64-NEXT:      RawDataOffset: 0x200
105# SEC64-NEXT:      RelocationPointer: 0x3C4
106# SEC64-NEXT:      LineNumberPointer: 0x0
107# SEC64-NEXT:      NumberOfRelocations: 9
108# SEC64-NEXT:      NumberOfLineNumbers: 0
109# SEC64-NEXT:      Type: STYP_TEXT (0x20)
110# SEC64-NEXT:    }
111# SEC64-NEXT:    Section {
112# SEC64-NEXT:      Index: 2
113# SEC64-NEXT:      Name: .data
114# SEC64-NEXT:      PhysicalAddress: 0x100
115# SEC64-NEXT:      VirtualAddress: 0x100
116# SEC64-NEXT:      Size: 0xC0
117# SEC64-NEXT:      RawDataOffset: 0x300
118# SEC64-NEXT:      RelocationPointer: 0x442
119# SEC64-NEXT:      LineNumberPointer: 0x0
120# SEC64-NEXT:      NumberOfRelocations: 19
121# SEC64-NEXT:      NumberOfLineNumbers: 0
122# SEC64-NEXT:      Type: STYP_DATA (0x40)
123# SEC64-NEXT:    }
124# SEC64-NEXT:    Section {
125# SEC64-NEXT:      Index: 3
126# SEC64-NEXT:      Name: .bss
127# SEC64-NEXT:      PhysicalAddress: 0x1C0
128# SEC64-NEXT:      VirtualAddress: 0x1C0
129# SEC64-NEXT:      Size: 0x8
130# SEC64-NEXT:      RawDataOffset: 0x0
131# SEC64-NEXT:      RelocationPointer: 0x0
132# SEC64-NEXT:      LineNumberPointer: 0x0
133# SEC64-NEXT:      NumberOfRelocations: 0
134# SEC64-NEXT:      NumberOfLineNumbers: 0
135# SEC64-NEXT:      Type: STYP_BSS (0x80)
136# SEC64-NEXT:    }
137# SEC64-NEXT:    Section {
138# SEC64-NEXT:      Index: 4
139# SEC64-NEXT:      Name: .tdata
140# SEC64-NEXT:      PhysicalAddress: 0x0
141# SEC64-NEXT:      VirtualAddress: 0x0
142# SEC64-NEXT:      Size: 0x4
143# SEC64-NEXT:      RawDataOffset: 0x3C0
144# SEC64-NEXT:      RelocationPointer: 0x54C
145# SEC64-NEXT:      LineNumberPointer: 0x0
146# SEC64-NEXT:      NumberOfRelocations: 0
147# SEC64-NEXT:      NumberOfLineNumbers: 0
148# SEC64-NEXT:      Type: STYP_TDATA (0x400)
149# SEC64-NEXT:    }
150# SEC64-NEXT:    Section {
151# SEC64-NEXT:      Index: 5
152# SEC64-NEXT:      Name: .tbss
153# SEC64-NEXT:      PhysicalAddress: 0x4
154# SEC64-NEXT:      VirtualAddress: 0x4
155# SEC64-NEXT:      Size: 0x8
156# SEC64-NEXT:      RawDataOffset: 0x0
157# SEC64-NEXT:      RelocationPointer: 0x0
158# SEC64-NEXT:      LineNumberPointer: 0x0
159# SEC64-NEXT:      NumberOfRelocations: 0
160# SEC64-NEXT:      NumberOfLineNumbers: 0
161# SEC64-NEXT:      Type: STYP_TBSS (0x800)
162# SEC64-NEXT:    }
163# SEC64-NEXT:  ]
164
165