1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --headers --symbols --string-table %t | \
3 # RUN: FileCheck %s --check-prefix=CHECK64
13 SectionData: "0000000000000FC0"
21 Flags: [ STYP_DEBUG, STYP_DATA ]
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
45 # CHECK64-NEXT: AuxiliaryHeader {
47 # CHECK64-NEXT: Sections [
48 # CHECK64-NEXT: Section {
49 # CHECK64-NEXT: Index: 1
50 # CHECK64-NEXT: Name: .text
51 # CHECK64-NEXT: PhysicalAddress: 0x0
52 # CHECK64-NEXT: VirtualAddress: 0x0
53 # CHECK64-NEXT: Size: 0x0
54 # CHECK64-NEXT: RawDataOffset: 0x0
55 # CHECK64-NEXT: RelocationPointer: 0x0
56 # CHECK64-NEXT: LineNumberPointer: 0x0
57 # CHECK64-NEXT: NumberOfRelocations: 0
58 # CHECK64-NEXT: NumberOfLineNumbers: 0
59 # CHECK64-NEXT: Type: STYP_TEXT (0x20)
61 # CHECK64-NEXT: Section {
62 # CHECK64-NEXT: Index: 2
63 # CHECK64-NEXT: Name: .data
64 # CHECK64-NEXT: PhysicalAddress: 0x0
65 # CHECK64-NEXT: VirtualAddress: 0x0
66 # CHECK64-NEXT: Size: 0x8
67 # CHECK64-NEXT: RawDataOffset: 0x138
68 # CHECK64-NEXT: RelocationPointer: 0x0
69 # CHECK64-NEXT: LineNumberPointer: 0x0
70 # CHECK64-NEXT: NumberOfRelocations: 0
71 # CHECK64-NEXT: NumberOfLineNumbers: 0
72 # CHECK64-NEXT: Type: STYP_DATA (0x40)
74 # CHECK64-NEXT: Section {
75 # CHECK64-NEXT: Index: 3
76 # CHECK64-NEXT: Name: .bss
77 # CHECK64-NEXT: PhysicalAddress: 0x8
78 # CHECK64-NEXT: VirtualAddress: 0x8
79 # CHECK64-NEXT: Size: 0x0
80 # CHECK64-NEXT: RawDataOffset: 0x0
81 # CHECK64-NEXT: RelocationPointer: 0x144
82 # CHECK64-NEXT: LineNumberPointer: 0x0
83 # CHECK64-NEXT: NumberOfRelocations: 1
84 # CHECK64-NEXT: NumberOfLineNumbers: 0
85 # CHECK64-NEXT: Type: STYP_BSS (0x80)
87 # CHECK64-NEXT: Section {
88 # CHECK64-NEXT: Index: 4
89 # CHECK64-NEXT: Name: .debug
90 # CHECK64-NEXT: PhysicalAddress: 0x0
91 # CHECK64-NEXT: VirtualAddress: 0x0
92 # CHECK64-NEXT: Size: 0x60
93 # CHECK64-NEXT: RawDataOffset: 0x140
94 # CHECK64-NEXT: RelocationPointer: 0x0
95 # CHECK64-NEXT: LineNumberPointer: 0x0
96 # CHECK64-NEXT: NumberOfRelocations: 0
97 # CHECK64-NEXT: NumberOfLineNumbers: 0
98 # CHECK64-NEXT: Type: 0x2040
101 # CHECK64-NEXT: Symbols [
102 # CHECK64-NEXT: Symbol {
103 # CHECK64-NEXT: Index: 0
104 # CHECK64-NEXT: Name: .file
105 # CHECK64-NEXT: Value: 0x0
106 # CHECK64-NEXT: Section: N_DEBUG
107 # CHECK64-NEXT: Type: 0x0
108 # CHECK64-NEXT: StorageClass: C_NULL (0x0)
109 # CHECK64-NEXT: NumberOfAuxEntries: 0
111 # CHECK64-NEXT: Symbol {
112 # CHECK64-NEXT: Index: 1
113 # CHECK64-NEXT: Name: .undef
114 # CHECK64-NEXT: Value: 0x0
115 # CHECK64-NEXT: Section: N_UNDEF
116 # CHECK64-NEXT: Type: 0x0
117 # CHECK64-NEXT: StorageClass: C_NULL (0x0)
118 # CHECK64-NEXT: NumberOfAuxEntries: 0
120 # CHECK64-NEXT: Symbol {
121 # CHECK64-NEXT: Index: 2
122 # CHECK64-NEXT: Name: .abs
123 # CHECK64-NEXT: Value: 0x0
124 # CHECK64-NEXT: Section: N_ABS
125 # CHECK64-NEXT: Type: 0x0
126 # CHECK64-NEXT: StorageClass: C_NULL (0x0)
127 # CHECK64-NEXT: NumberOfAuxEntries: 0
129 # CHECK64-NEXT: Symbol {
130 # CHECK64-NEXT: Index: 3
131 # CHECK64-NEXT: Name: .text
132 # CHECK64-NEXT: Value (RelocatableAddress): 0x0
133 # CHECK64-NEXT: Section: .text
134 # CHECK64-NEXT: Type: 0x0
135 # CHECK64-NEXT: StorageClass: C_HIDEXT (0x6B)
136 # CHECK64-NEXT: NumberOfAuxEntries: 0
139 # CHECK64-NEXT: StringTable {
140 # CHECK64-NEXT: Length: 28
141 # CHECK64-NEXT: [ 4] .text
142 # CHECK64-NEXT: [ a] .abs
143 # CHECK64-NEXT: [ f] .undef
144 # CHECK64-NEXT: [ 16] .file