[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / yaml2obj / XCOFF / basic-doc64.yaml
blob8c14ef9a17ba90928c62ecf469c7d2411113bcd5
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --headers --symbols --string-table %t | \
3 # RUN:   FileCheck %s --check-prefix=CHECK64
5 --- !XCOFF
6 FileHeader:
7   MagicNumber:     0x01F7
8 Sections:
9   - Name:            .text
10     Flags:           [ STYP_TEXT ]
11   - Name:            .data
12     Flags:           [ STYP_DATA ]
13     SectionData:     "0000000000000FC0"
14   - Name:            .bss
15     Flags:           [ STYP_BSS ]
16     Relocations:
17       - Type:        0x02
18   - Name:            .debug
19     Address:         0x0
20     Size:            0x60
21     Flags:           [ STYP_DEBUG, STYP_DATA ]
22     SectionData:     01110103
23 Symbols:
24   - Name:            .file
25     Section:         N_DEBUG
26   - Name:            .undef
27   - Name:            .abs
28     Section:         N_ABS
29   - Name:            .text
30     Value:           0x0
31     Section:         .text
32     Type:            0x0
33     StorageClass:    C_HIDEXT
35 # CHECK64:      AddressSize: 64bit
36 # CHECK64-NEXT: FileHeader {
37 # CHECK64-NEXT:   Magic: 0x1F7
38 # CHECK64-NEXT:   NumberOfSections: 4
39 # CHECK64-NEXT:   TimeStamp: None (0x0)
40 # CHECK64-NEXT:   SymbolTableOffset: 0x152
41 # CHECK64-NEXT:   SymbolTableEntries: 4
42 # CHECK64-NEXT:   OptionalHeaderSize: 0x0
43 # CHECK64-NEXT:   Flags: 0x0
44 # CHECK64-NEXT: }
45 # CHECK64-NEXT: Sections [
46 # CHECK64-NEXT:   Section {
47 # CHECK64-NEXT:     Index: 1
48 # CHECK64-NEXT:     Name: .text
49 # CHECK64-NEXT:     PhysicalAddress: 0x0
50 # CHECK64-NEXT:     VirtualAddress: 0x0
51 # CHECK64-NEXT:     Size: 0x0
52 # CHECK64-NEXT:     RawDataOffset: 0x0
53 # CHECK64-NEXT:     RelocationPointer: 0x0
54 # CHECK64-NEXT:     LineNumberPointer: 0x0
55 # CHECK64-NEXT:     NumberOfRelocations: 0
56 # CHECK64-NEXT:     NumberOfLineNumbers: 0
57 # CHECK64-NEXT:     Type: STYP_TEXT (0x20)
58 # CHECK64-NEXT:   }
59 # CHECK64-NEXT:   Section {
60 # CHECK64-NEXT:     Index: 2
61 # CHECK64-NEXT:     Name: .data
62 # CHECK64-NEXT:     PhysicalAddress: 0x0
63 # CHECK64-NEXT:     VirtualAddress: 0x0
64 # CHECK64-NEXT:     Size: 0x8
65 # CHECK64-NEXT:     RawDataOffset: 0x138
66 # CHECK64-NEXT:     RelocationPointer: 0x0
67 # CHECK64-NEXT:     LineNumberPointer: 0x0
68 # CHECK64-NEXT:     NumberOfRelocations: 0
69 # CHECK64-NEXT:     NumberOfLineNumbers: 0
70 # CHECK64-NEXT:     Type: STYP_DATA (0x40)
71 # CHECK64-NEXT:   }
72 # CHECK64-NEXT:   Section {
73 # CHECK64-NEXT:     Index: 3
74 # CHECK64-NEXT:     Name: .bss
75 # CHECK64-NEXT:     PhysicalAddress: 0x8
76 # CHECK64-NEXT:     VirtualAddress: 0x8
77 # CHECK64-NEXT:     Size: 0x0
78 # CHECK64-NEXT:     RawDataOffset: 0x0
79 # CHECK64-NEXT:     RelocationPointer: 0x144
80 # CHECK64-NEXT:     LineNumberPointer: 0x0
81 # CHECK64-NEXT:     NumberOfRelocations: 1
82 # CHECK64-NEXT:     NumberOfLineNumbers: 0
83 # CHECK64-NEXT:     Type: STYP_BSS (0x80)
84 # CHECK64-NEXT:   }
85 # CHECK64-NEXT:   Section {
86 # CHECK64-NEXT:     Index: 4
87 # CHECK64-NEXT:     Name: .debug
88 # CHECK64-NEXT:     PhysicalAddress: 0x0
89 # CHECK64-NEXT:     VirtualAddress: 0x0
90 # CHECK64-NEXT:     Size: 0x60
91 # CHECK64-NEXT:     RawDataOffset: 0x140
92 # CHECK64-NEXT:     RelocationPointer: 0x0
93 # CHECK64-NEXT:     LineNumberPointer: 0x0
94 # CHECK64-NEXT:     NumberOfRelocations: 0
95 # CHECK64-NEXT:     NumberOfLineNumbers: 0
96 # CHECK64-NEXT:     Type: 0x2040
97 # CHECK64-NEXT:   }
98 # CHECK64-NEXT: ]
99 # CHECK64-NEXT: Symbols [
100 # CHECK64-NEXT:   Symbol {
101 # CHECK64-NEXT:     Index: 0
102 # CHECK64-NEXT:     Name: .file
103 # CHECK64-NEXT:     Value: 0x0
104 # CHECK64-NEXT:     Section: N_DEBUG
105 # CHECK64-NEXT:     Type: 0x0
106 # CHECK64-NEXT:     StorageClass: C_NULL (0x0)
107 # CHECK64-NEXT:     NumberOfAuxEntries: 0
108 # CHECK64-NEXT:   }
109 # CHECK64-NEXT:   Symbol {
110 # CHECK64-NEXT:     Index: 1
111 # CHECK64-NEXT:     Name: .undef
112 # CHECK64-NEXT:     Value: 0x0
113 # CHECK64-NEXT:     Section: N_UNDEF
114 # CHECK64-NEXT:     Type: 0x0
115 # CHECK64-NEXT:     StorageClass: C_NULL (0x0)
116 # CHECK64-NEXT:     NumberOfAuxEntries: 0
117 # CHECK64-NEXT:   }
118 # CHECK64-NEXT:   Symbol {
119 # CHECK64-NEXT:     Index: 2
120 # CHECK64-NEXT:     Name: .abs
121 # CHECK64-NEXT:     Value: 0x0
122 # CHECK64-NEXT:     Section: N_ABS
123 # CHECK64-NEXT:     Type: 0x0
124 # CHECK64-NEXT:     StorageClass: C_NULL (0x0)
125 # CHECK64-NEXT:     NumberOfAuxEntries: 0
126 # CHECK64-NEXT:   }
127 # CHECK64-NEXT:   Symbol {
128 # CHECK64-NEXT:     Index: 3
129 # CHECK64-NEXT:     Name: .text
130 # CHECK64-NEXT:     Value (RelocatableAddress): 0x0
131 # CHECK64-NEXT:     Section: .text
132 # CHECK64-NEXT:     Type: 0x0
133 # CHECK64-NEXT:     StorageClass: C_HIDEXT (0x6B)
134 # CHECK64-NEXT:     NumberOfAuxEntries: 0
135 # CHECK64-NEXT:   }
136 # CHECK64-NEXT: ]
137 # CHECK64-NEXT: StringTable {
138 # CHECK64-NEXT:   Length: 28
139 # CHECK64-NEXT:   [     4]   .text
140 # CHECK64-NEXT:   [     a]   .abs
141 # CHECK64-NEXT:   [     f]   .undef
142 # CHECK64-NEXT:   [    16]   .file
143 # CHECK64-NEXT: }