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: Sections [
50 # CHECK-NEXT: Section {
51 # CHECK-NEXT: Index: 1
52 # CHECK-NEXT: Name: .text
53 # CHECK-NEXT: PhysicalAddress: 0x0
54 # CHECK-NEXT: VirtualAddress: 0x0
55 # CHECK-NEXT: Size: 0x8
56 # CHECK-NEXT: RawDataOffset: 0xDC
57 # CHECK-NEXT: RelocationPointer: 0x0
58 # CHECK-NEXT: LineNumberPointer: 0x0
59 # CHECK-NEXT: NumberOfRelocations: 0
60 # CHECK-NEXT: NumberOfLineNumbers: 0
61 # CHECK-NEXT: Type: STYP_TEXT (0x20)
63 # CHECK-NEXT: Section {
64 # CHECK-NEXT: Index: 2
65 # CHECK-NEXT: Name: .data
66 # CHECK-NEXT: PhysicalAddress: 0x8
67 # CHECK-NEXT: VirtualAddress: 0x8
68 # CHECK-NEXT: Size: 0x8
69 # CHECK-NEXT: RawDataOffset: 0xE4
70 # CHECK-NEXT: RelocationPointer: 0xF0
71 # CHECK-NEXT: LineNumberPointer: 0x0
72 # CHECK-NEXT: NumberOfRelocations: 1
73 # CHECK-NEXT: NumberOfLineNumbers: 0
74 # CHECK-NEXT: Type: STYP_DATA (0x40)
76 # CHECK-NEXT: Section {
77 # CHECK-NEXT: Index: 3
78 # CHECK-NEXT: Name: .data
79 # CHECK-NEXT: PhysicalAddress: 0x0
80 # CHECK-NEXT: VirtualAddress: 0x0
81 # CHECK-NEXT: Size: 0x0
82 # CHECK-NEXT: RawDataOffset: 0x0
83 # CHECK-NEXT: RelocationPointer: 0xFA
84 # CHECK-NEXT: LineNumberPointer: 0x0
85 # CHECK-NEXT: NumberOfRelocations: 1
86 # CHECK-NEXT: NumberOfLineNumbers: 0
87 # CHECK-NEXT: Type: 0x0
89 # CHECK-NEXT: Section {
90 # CHECK-NEXT: Index: 4
91 # CHECK-NEXT: Name: .debug
92 # CHECK-NEXT: PhysicalAddress: 0x0
93 # CHECK-NEXT: VirtualAddress: 0x0
94 # CHECK-NEXT: Size: 0x60
95 # CHECK-NEXT: RawDataOffset: 0xEC
96 # CHECK-NEXT: RelocationPointer: 0x0
97 # CHECK-NEXT: LineNumberPointer: 0x0
98 # CHECK-NEXT: NumberOfRelocations: 0
99 # CHECK-NEXT: NumberOfLineNumbers: 0
100 # CHECK-NEXT: Type: 0x2040
102 # CHECK-NEXT: Section {
103 # CHECK-NEXT: Index: 5
105 # CHECK-NEXT: PhysicalAddress: 0x0
106 # CHECK-NEXT: VirtualAddress: 0x0
107 # CHECK-NEXT: Size: 0x0
108 # CHECK-NEXT: RawDataOffset: 0x0
109 # CHECK-NEXT: RelocationPointer: 0x0
110 # CHECK-NEXT: LineNumberPointer: 0x0
111 # CHECK-NEXT: NumberOfRelocations: 0
112 # CHECK-NEXT: NumberOfLineNumbers: 0
113 # CHECK-NEXT: Type: 0xDF90
116 # CHECK-NEXT: Symbols [
117 # CHECK-NEXT: Symbol {
118 # CHECK-NEXT: Index: 0
119 # CHECK-NEXT: Name: .file
120 # CHECK-NEXT: Value: 0x0
121 # CHECK-NEXT: Section: N_DEBUG
122 # CHECK-NEXT: Type: 0x0
123 # CHECK-NEXT: StorageClass: C_NULL (0x0)
124 # CHECK-NEXT: NumberOfAuxEntries: 0
126 # CHECK-NEXT: Symbol {
127 # CHECK-NEXT: Index: 1
128 # CHECK-NEXT: Name: .undef
129 # CHECK-NEXT: Value: 0x0
130 # CHECK-NEXT: Section: N_UNDEF
131 # CHECK-NEXT: Type: 0x0
132 # CHECK-NEXT: StorageClass: C_NULL (0x0)
133 # CHECK-NEXT: NumberOfAuxEntries: 0
135 # CHECK-NEXT: Symbol {
136 # CHECK-NEXT: Index: 2
137 # CHECK-NEXT: Name: .abs
138 # CHECK-NEXT: Value: 0x0
139 # CHECK-NEXT: Section: N_ABS
140 # CHECK-NEXT: Type: 0x0
141 # CHECK-NEXT: StorageClass: C_NULL (0x0)
142 # CHECK-NEXT: NumberOfAuxEntries: 0
144 # CHECK-NEXT: Symbol {
145 # CHECK-NEXT: Index: 3
146 # CHECK-NEXT: Name: .text
147 # CHECK-NEXT: Value (RelocatableAddress): 0x0
148 # CHECK-NEXT: Section: .text
149 # CHECK-NEXT: Type: 0x0
150 # CHECK-NEXT: StorageClass: C_HIDEXT (0x6B)
151 # CHECK-NEXT: NumberOfAuxEntries: 1
152 # CHECK-NEXT: CSECT Auxiliary Entry {
153 # CHECK-NEXT: Index: 4
154 # CHECK-NEXT: SectionLen: 0
155 # CHECK-NEXT: ParameterHashIndex: 0x0
156 # CHECK-NEXT: TypeChkSectNum: 0x0
157 # CHECK-NEXT: SymbolAlignmentLog2: 0
158 # CHECK-NEXT: SymbolType: XTY_ER (0x0)
159 # CHECK-NEXT: StorageMappingClass: XMC_PR (0x0)
160 # CHECK-NEXT: StabInfoIndex: 0x0
161 # CHECK-NEXT: StabSectNum: 0x0