2
2
3
3
# RUN: yaml2obj %s -o %t1
4
4
# RUN: llvm-readobj --section-headers %t1 | \
5
- # RUN: FileCheck --strict-whitespace --match-full-lines --check-prefix=SEC32 %s
5
+ # RUN: FileCheck --strict-whitespace --match-full-lines --check-prefixes=SEC,SEC32 %s
6
+
7
+ # RUN: yaml2obj -DMAGIC=0x01F7 %s -o %t2
8
+ # RUN: llvm-readobj --section-headers %t2 | \
9
+ # RUN: FileCheck --strict-whitespace --match-full-lines --check-prefixes=SEC,SEC64 %s
6
10
7
11
# SEC32:Format: aixcoff-rs6000
12
+ # SEC64:Format: aix5coff64-rs6000
8
13
# SEC32-NEXT:Arch: powerpc
14
+ # SEC64-NEXT:Arch: powerpc64
9
15
# SEC32-NEXT:AddressSize: 32bit
10
- # SEC32-NEXT:Sections [
11
- # SEC32-NEXT: Section {
12
- # SEC32-NEXT: Index: 1
13
- # SEC32-NEXT: Name: .text
14
- # SEC32-NEXT: PhysicalAddress: 0x0
15
- # SEC32-NEXT: VirtualAddress: 0x0
16
- # SEC32-NEXT: Size: 0x2
17
- # SEC32-NEXT: RawDataOffset: 0x64
18
- # SEC32-NEXT: RelocationPointer: 0x0
19
- # SEC32-NEXT: LineNumberPointer: 0x0
20
- # SEC32-NEXT: NumberOfRelocations: 0
21
- # SEC32-NEXT: NumberOfLineNumbers: 0
22
- # SEC32-NEXT: Type: STYP_TEXT (0x20)
23
- # SEC32-NEXT: }
24
- # SEC32-NEXT: Section {
25
- # SEC32-NEXT: Index: 2
26
- # SEC32-NEXT: Name: .data
27
- # SEC32-NEXT: PhysicalAddress: 0x0
28
- # SEC32-NEXT: VirtualAddress: 0x0
29
- # SEC32-NEXT: Size: 0x2
30
- # SEC32-NEXT: RawDataOffset: 0x68
31
- # SEC32-NEXT: RelocationPointer: 0x6A
32
- # SEC32-NEXT: LineNumberPointer: 0x0
33
- # SEC32-NEXT: NumberOfRelocations: 1
34
- # SEC32-NEXT: NumberOfLineNumbers: 0
35
- # SEC32-NEXT: Type: STYP_DATA (0x40)
36
- # SEC32-NEXT: }
37
- # SEC32-NEXT:]
16
+ # SEC64-NEXT:AddressSize: 64bit
17
+ # SEC-NEXT:Sections [
18
+ # SEC-NEXT: Section {
19
+ # SEC-NEXT: Index: 1
20
+ # SEC-NEXT: Name: .text
21
+ # SEC-NEXT: PhysicalAddress: 0x0
22
+ # SEC-NEXT: VirtualAddress: 0x0
23
+ # SEC-NEXT: Size: 0x2
24
+ # SEC32-NEXT: RawDataOffset: 0xB4
25
+ # SEC64-NEXT: RawDataOffset: 0x138
26
+ # SEC-NEXT: RelocationPointer: 0x0
27
+ # SEC-NEXT: LineNumberPointer: 0x0
28
+ # SEC-NEXT: NumberOfRelocations: 0
29
+ # SEC-NEXT: NumberOfLineNumbers: 0
30
+ # SEC-NEXT: Type: STYP_TEXT (0x20)
31
+ # SEC-NEXT: }
32
+ # SEC-NEXT: Section {
33
+ # SEC-NEXT: Index: 2
34
+ # SEC-NEXT: Name: .data
35
+ # SEC-NEXT: PhysicalAddress: 0x0
36
+ # SEC-NEXT: VirtualAddress: 0x0
37
+ # SEC-NEXT: Size: 0x2
38
+ # SEC32-NEXT: RawDataOffset: 0xB8
39
+ # SEC64-NEXT: RawDataOffset: 0x13C
40
+ # SEC32-NEXT: RelocationPointer: 0xC4
41
+ # SEC64-NEXT: RelocationPointer: 0x148
42
+ # SEC-NEXT: LineNumberPointer: 0x0
43
+ # SEC-NEXT: NumberOfRelocations: 1
44
+ # SEC-NEXT: NumberOfLineNumbers: 0
45
+ # SEC-NEXT: Type: STYP_DATA (0x40)
46
+ # SEC-NEXT: }
47
+ # SEC-NEXT: Section {
48
+ # SEC-NEXT: Index: 3
49
+ # SEC-NEXT: Name: .dwabrev
50
+ # SEC: Type: STYP_DWARF (0x10)
51
+ # SEC-NEXT: DWARFSubType: SSUBTYP_DWABREV (0x60000)
52
+ # SEC-NEXT: }
53
+ # SEC-NEXT: Section {
54
+ # SEC-NEXT: Index: 4
55
+ # SEC-NEXT: Name: .dwinfo
56
+ # SEC: Type: STYP_DWARF (0x10)
57
+ # SEC-NEXT: DWARFSubType: SSUBTYP_DWINFO (0x10000)
58
+ # SEC-NEXT: }
59
+ # SEC-NEXT:]
38
60
39
61
--- !XCOFF
40
62
FileHeader:
@@ -51,39 +73,15 @@ Sections:
51
73
Symbol: 0x21
52
74
Info: 0x1F
53
75
Type: 0x0
54
-
55
- # RUN: yaml2obj -DMAGIC=0x01F7 %s -o %t2
56
- # RUN: llvm-readobj --section-headers %t2 | \
57
- # RUN: FileCheck --strict-whitespace --match-full-lines --check-prefix=SEC64 %s
58
-
59
- # SEC64:Format: aix5coff64-rs6000
60
- # SEC64-NEXT:Arch: powerpc64
61
- # SEC64-NEXT:AddressSize: 64bit
62
- # SEC64-NEXT:Sections [
63
- # SEC64-NEXT: Section {
64
- # SEC64-NEXT: Index: 1
65
- # SEC64-NEXT: Name: .text
66
- # SEC64-NEXT: PhysicalAddress: 0x0
67
- # SEC64-NEXT: VirtualAddress: 0x0
68
- # SEC64-NEXT: Size: 0x2
69
- # SEC64-NEXT: RawDataOffset: 0xA8
70
- # SEC64-NEXT: RelocationPointer: 0x0
71
- # SEC64-NEXT: LineNumberPointer: 0x0
72
- # SEC64-NEXT: NumberOfRelocations: 0
73
- # SEC64-NEXT: NumberOfLineNumbers: 0
74
- # SEC64-NEXT: Type: STYP_TEXT (0x20)
75
- # SEC64-NEXT: }
76
- # SEC64-NEXT: Section {
77
- # SEC64-NEXT: Index: 2
78
- # SEC64-NEXT: Name: .data
79
- # SEC64-NEXT: PhysicalAddress: 0x0
80
- # SEC64-NEXT: VirtualAddress: 0x0
81
- # SEC64-NEXT: Size: 0x2
82
- # SEC64-NEXT: RawDataOffset: 0xAC
83
- # SEC64-NEXT: RelocationPointer: 0xAE
84
- # SEC64-NEXT: LineNumberPointer: 0x0
85
- # SEC64-NEXT: NumberOfRelocations: 1
86
- # SEC64-NEXT: NumberOfLineNumbers: 0
87
- # SEC64-NEXT: Type: STYP_DATA (0x40)
88
- # SEC64-NEXT: }
89
- # SEC64-NEXT:]
76
+ - Name: .dwabrev
77
+ Address: 0x0
78
+ Size: 0x4
79
+ Flags: [ STYP_DWARF ]
80
+ DWARFSectionSubtype: SSUBTYP_DWABREV
81
+ SectionData: 01110125
82
+ - Name: .dwinfo
83
+ Address: 0x0
84
+ Size: 0x4
85
+ Flags: [ STYP_DWARF ]
86
+ DWARFSectionSubtype: SSUBTYP_DWINFO
87
+ SectionData: 00000080
0 commit comments