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
10 OffsetToSymbolTable: 0x7A
11 EntriesInSymbolTable: 4
12 AuxiliaryHeaderSize: 0
18 FileOffsetToData: 0x64
19 FileOffsetToRelocations: 0x0
20 FileOffsetToLineNumbers: 0x0
21 NumberOfRelocations: 0x0
22 NumberOfLineNumbers: 0x0
24 SectionData: "3860000048"
28 FileOffsetToData: 0x6C
29 FileOffsetToRelocations: 0x70
30 FileOffsetToLineNumbers: 0x0
31 NumberOfRelocations: 0x1
32 NumberOfLineNumbers: 0x0
34 SectionData: "00000088"
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
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)
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)
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
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