[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / yaml2obj / XCOFF / full-contents.yaml
blob5fb17c7ac7e1eb4e12536315aec51b4ae6e7de5a
1 ## Test that we can explicitly specify all the fields.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-readobj --headers --symbols %t | FileCheck %s
5 --- !XCOFF
6 FileHeader:
7   MagicNumber:          0x1DF
8   NumberOfSections:     2
9   CreationTime:         0
10   OffsetToSymbolTable:  0x7A
11   EntriesInSymbolTable: 4
12   AuxiliaryHeaderSize:  0
13   Flags:                0x0
14 Sections:
15   - Name:                    .text
16     Address:                 0x0
17     Size:                    0x8
18     FileOffsetToData:        0x64
19     FileOffsetToRelocations: 0x0
20     FileOffsetToLineNumbers: 0x0
21     NumberOfRelocations:     0x0
22     NumberOfLineNumbers:     0x0
23     Flags:                   [ STYP_TEXT ]
24     SectionData:             "3860000048"
25   - Name:                    .data
26     Address:                 0x8
27     Size:                    0x4
28     FileOffsetToData:        0x6C
29     FileOffsetToRelocations: 0x70
30     FileOffsetToLineNumbers: 0x0
31     NumberOfRelocations:     0x1
32     NumberOfLineNumbers:     0x0
33     Flags:                   [ STYP_DATA ]
34     SectionData:             "00000088"
35     Relocations:
36       - Address:         0x80
37         Symbol:          0x21
38         Info:            0x1F
39         Type:            0x0
40 Symbols:
41   - Name:               .text
42     Value:              0x0
43     Section:            .text
44     Type:               0x0
45     StorageClass:       C_STAT
46     NumberOfAuxEntries: 1
47   - Name:               .data
48     Value:              0x80
49     Section:            .data
50     Type:               0x0
51     StorageClass:       C_STAT
52     NumberOfAuxEntries: 1
54 # CHECK:      FileHeader {
55 # CHECK-NEXT:   Magic: 0x1DF
56 # CHECK-NEXT:   NumberOfSections: 2
57 # CHECK-NEXT:   TimeStamp: None (0x0)
58 # CHECK-NEXT:   SymbolTableOffset: 0x7A
59 # CHECK-NEXT:   SymbolTableEntries: 4
60 # CHECK-NEXT:   OptionalHeaderSize: 0x0
61 # CHECK-NEXT:   Flags: 0x0
62 # CHECK-NEXT: }
63 # CHECK-NEXT: Sections [
64 # CHECK-NEXT:   Section {
65 # CHECK-NEXT:     Index: 1
66 # CHECK-NEXT:     Name: .text
67 # CHECK-NEXT:     PhysicalAddress: 0x0
68 # CHECK-NEXT:     VirtualAddress: 0x0
69 # CHECK-NEXT:     Size: 0x8
70 # CHECK-NEXT:     RawDataOffset: 0x64
71 # CHECK-NEXT:     RelocationPointer: 0x0
72 # CHECK-NEXT:     LineNumberPointer: 0x0
73 # CHECK-NEXT:     NumberOfRelocations: 0
74 # CHECK-NEXT:     NumberOfLineNumbers: 0
75 # CHECK-NEXT:     Type: STYP_TEXT (0x20)
76 # CHECK-NEXT:   }
77 # CHECK-NEXT:   Section {
78 # CHECK-NEXT:     Index: 2
79 # CHECK-NEXT:     Name: .data
80 # CHECK-NEXT:     PhysicalAddress: 0x8
81 # CHECK-NEXT:     VirtualAddress: 0x8
82 # CHECK-NEXT:     Size: 0x4
83 # CHECK-NEXT:     RawDataOffset: 0x6C
84 # CHECK-NEXT:     RelocationPointer: 0x70
85 # CHECK-NEXT:     LineNumberPointer: 0x0
86 # CHECK-NEXT:     NumberOfRelocations: 1
87 # CHECK-NEXT:     NumberOfLineNumbers: 0
88 # CHECK-NEXT:     Type: STYP_DATA (0x40)
89 # CHECK-NEXT:   }
90 # CHECK-NEXT: ]
91 # CHECK-NEXT: Symbols [
92 # CHECK-NEXT:   Symbol {
93 # CHECK-NEXT:     Index: 0
94 # CHECK-NEXT:     Name: .text
95 # CHECK-NEXT:     Value (RelocatableAddress): 0x0
96 # CHECK-NEXT:     Section: .text
97 # CHECK-NEXT:     Type: 0x0
98 # CHECK-NEXT:     StorageClass: C_STAT (0x3)
99 # CHECK-NEXT:     NumberOfAuxEntries: 1
100 # CHECK-NEXT:     Sect Auxiliary Entry For Stat {
101 # CHECK-NEXT:       Index: 1
102 # CHECK-NEXT:       SectionLength: 0
103 # CHECK-NEXT:       NumberOfRelocEnt: 0
104 # CHECK-NEXT:       NumberOfLineNum: 0
105 # CHECK-NEXT:     }
106 # CHECK-NEXT:   }
107 # CHECK-NEXT:   Symbol {
108 # CHECK-NEXT:     Index: 2
109 # CHECK-NEXT:     Name: .data
110 # CHECK-NEXT:     Value (RelocatableAddress): 0x80
111 # CHECK-NEXT:     Section: .data
112 # CHECK-NEXT:     Type: 0x0
113 # CHECK-NEXT:     StorageClass: C_STAT (0x3)
114 # CHECK-NEXT:     NumberOfAuxEntries: 1
115 # CHECK-NEXT:     Sect Auxiliary Entry For Stat {
116 # CHECK-NEXT:       Index: 3
117 # CHECK-NEXT:       SectionLength: 0
118 # CHECK-NEXT:       NumberOfRelocEnt: 0
119 # CHECK-NEXT:       NumberOfLineNum: 0
120 # CHECK-NEXT:     }
121 # CHECK-NEXT:   }
122 # CHECK-NEXT: ]