1 ## Check that yaml2obj automatically assigns omited fields with values.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-readobj --headers --symbols %t | FileCheck %s
11 SectionData: "9061FFF880820000"
14 SectionData: "0000000000000FC0"
23 Flags: [ STYP_DEBUG, STYP_DATA ]
25 - Flags: [ STYP_BSS, STYP_DWARF, STYP_EXCEPT, STYP_INFO, STYP_TDATA, STYP_TBSS, STYP_LOADER, STYP_TYPCHK, STYP_OVRFLO ]
36 StorageClass: C_HIDEXT
39 # CHECK: AddressSize: 32bit
40 # CHECK-NEXT: FileHeader {
41 # CHECK-NEXT: Magic: 0x1DF
42 # CHECK-NEXT: NumberOfSections: 5
43 # CHECK-NEXT: TimeStamp: None (0x0)
44 # CHECK-NEXT: SymbolTableOffset: 0x104
45 # CHECK-NEXT: SymbolTableEntries: 5
46 # CHECK-NEXT: OptionalHeaderSize: 0x0
47 # CHECK-NEXT: Flags: 0x0
49 # CHECK-NEXT: AuxiliaryHeader {
51 # CHECK-NEXT: Sections [
52 # CHECK-NEXT: Section {
53 # CHECK-NEXT: Index: 1
54 # CHECK-NEXT: Name: .text
55 # CHECK-NEXT: PhysicalAddress: 0x0
56 # CHECK-NEXT: VirtualAddress: 0x0
57 # CHECK-NEXT: Size: 0x8
58 # CHECK-NEXT: RawDataOffset: 0xDC
59 # CHECK-NEXT: RelocationPointer: 0x0
60 # CHECK-NEXT: LineNumberPointer: 0x0
61 # CHECK-NEXT: NumberOfRelocations: 0
62 # CHECK-NEXT: NumberOfLineNumbers: 0
63 # CHECK-NEXT: Type: STYP_TEXT (0x20)
65 # CHECK-NEXT: Section {
66 # CHECK-NEXT: Index: 2
67 # CHECK-NEXT: Name: .data
68 # CHECK-NEXT: PhysicalAddress: 0x8
69 # CHECK-NEXT: VirtualAddress: 0x8
70 # CHECK-NEXT: Size: 0x8
71 # CHECK-NEXT: RawDataOffset: 0xE4
72 # CHECK-NEXT: RelocationPointer: 0xF0
73 # CHECK-NEXT: LineNumberPointer: 0x0
74 # CHECK-NEXT: NumberOfRelocations: 1
75 # CHECK-NEXT: NumberOfLineNumbers: 0
76 # CHECK-NEXT: Type: STYP_DATA (0x40)
78 # CHECK-NEXT: Section {
79 # CHECK-NEXT: Index: 3
80 # CHECK-NEXT: Name: .data
81 # CHECK-NEXT: PhysicalAddress: 0x0
82 # CHECK-NEXT: VirtualAddress: 0x0
83 # CHECK-NEXT: Size: 0x0
84 # CHECK-NEXT: RawDataOffset: 0x0
85 # CHECK-NEXT: RelocationPointer: 0xFA
86 # CHECK-NEXT: LineNumberPointer: 0x0
87 # CHECK-NEXT: NumberOfRelocations: 1
88 # CHECK-NEXT: NumberOfLineNumbers: 0
89 # CHECK-NEXT: Type: 0x0
91 # CHECK-NEXT: Section {
92 # CHECK-NEXT: Index: 4
93 # CHECK-NEXT: Name: .debug
94 # CHECK-NEXT: PhysicalAddress: 0x0
95 # CHECK-NEXT: VirtualAddress: 0x0
96 # CHECK-NEXT: Size: 0x60
97 # CHECK-NEXT: RawDataOffset: 0xEC
98 # CHECK-NEXT: RelocationPointer: 0x0
99 # CHECK-NEXT: LineNumberPointer: 0x0
100 # CHECK-NEXT: NumberOfRelocations: 0
101 # CHECK-NEXT: NumberOfLineNumbers: 0
102 # CHECK-NEXT: Type: 0x2040
104 # CHECK-NEXT: Section {
105 # CHECK-NEXT: Index: 5
107 # CHECK-NEXT: PhysicalAddress: 0x0
108 # CHECK-NEXT: VirtualAddress: 0x0
109 # CHECK-NEXT: Size: 0x0
110 # CHECK-NEXT: RawDataOffset: 0x0
111 # CHECK-NEXT: RelocationPointer: 0x0
112 # CHECK-NEXT: LineNumberPointer: 0x0
113 # CHECK-NEXT: NumberOfRelocations: 0
114 # CHECK-NEXT: NumberOfLineNumbers: 0
115 # CHECK-NEXT: Type: 0xDF90
118 # CHECK-NEXT: Symbols [
119 # CHECK-NEXT: Symbol {
120 # CHECK-NEXT: Index: 0
121 # CHECK-NEXT: Name: .file
122 # CHECK-NEXT: Value: 0x0
123 # CHECK-NEXT: Section: N_DEBUG
124 # CHECK-NEXT: Type: 0x0
125 # CHECK-NEXT: StorageClass: C_NULL (0x0)
126 # CHECK-NEXT: NumberOfAuxEntries: 0
128 # CHECK-NEXT: Symbol {
129 # CHECK-NEXT: Index: 1
130 # CHECK-NEXT: Name: .undef
131 # CHECK-NEXT: Value: 0x0
132 # CHECK-NEXT: Section: N_UNDEF
133 # CHECK-NEXT: Type: 0x0
134 # CHECK-NEXT: StorageClass: C_NULL (0x0)
135 # CHECK-NEXT: NumberOfAuxEntries: 0
137 # CHECK-NEXT: Symbol {
138 # CHECK-NEXT: Index: 2
139 # CHECK-NEXT: Name: .abs
140 # CHECK-NEXT: Value: 0x0
141 # CHECK-NEXT: Section: N_ABS
142 # CHECK-NEXT: Type: 0x0
143 # CHECK-NEXT: StorageClass: C_NULL (0x0)
144 # CHECK-NEXT: NumberOfAuxEntries: 0
146 # CHECK-NEXT: Symbol {
147 # CHECK-NEXT: Index: 3
148 # CHECK-NEXT: Name: .text
149 # CHECK-NEXT: Value (RelocatableAddress): 0x0
150 # CHECK-NEXT: Section: .text
151 # CHECK-NEXT: Type: 0x0
152 # CHECK-NEXT: StorageClass: C_HIDEXT (0x6B)
153 # CHECK-NEXT: NumberOfAuxEntries: 1
154 # CHECK-NEXT: CSECT Auxiliary Entry {
155 # CHECK-NEXT: Index: 4
156 # CHECK-NEXT: SectionLen: 0
157 # CHECK-NEXT: ParameterHashIndex: 0x0
158 # CHECK-NEXT: TypeChkSectNum: 0x0
159 # CHECK-NEXT: SymbolAlignmentLog2: 0
160 # CHECK-NEXT: SymbolType: XTY_ER (0x0)
161 # CHECK-NEXT: StorageMappingClass: XMC_PR (0x0)
162 # CHECK-NEXT: StabInfoIndex: 0x0
163 # CHECK-NEXT: StabSectNum: 0x0