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: Sections [
46 # CHECK64-NEXT: Section {
47 # CHECK64-NEXT: Index: 1
48 # CHECK64-NEXT: Name: .text
49 # CHECK64-NEXT: PhysicalAddress: 0x0
50 # CHECK64-NEXT: VirtualAddress: 0x0
51 # CHECK64-NEXT: Size: 0x0
52 # CHECK64-NEXT: RawDataOffset: 0x0
53 # CHECK64-NEXT: RelocationPointer: 0x0
54 # CHECK64-NEXT: LineNumberPointer: 0x0
55 # CHECK64-NEXT: NumberOfRelocations: 0
56 # CHECK64-NEXT: NumberOfLineNumbers: 0
57 # CHECK64-NEXT: Type: STYP_TEXT (0x20)
59 # CHECK64-NEXT: Section {
60 # CHECK64-NEXT: Index: 2
61 # CHECK64-NEXT: Name: .data
62 # CHECK64-NEXT: PhysicalAddress: 0x0
63 # CHECK64-NEXT: VirtualAddress: 0x0
64 # CHECK64-NEXT: Size: 0x8
65 # CHECK64-NEXT: RawDataOffset: 0x138
66 # CHECK64-NEXT: RelocationPointer: 0x0
67 # CHECK64-NEXT: LineNumberPointer: 0x0
68 # CHECK64-NEXT: NumberOfRelocations: 0
69 # CHECK64-NEXT: NumberOfLineNumbers: 0
70 # CHECK64-NEXT: Type: STYP_DATA (0x40)
72 # CHECK64-NEXT: Section {
73 # CHECK64-NEXT: Index: 3
74 # CHECK64-NEXT: Name: .bss
75 # CHECK64-NEXT: PhysicalAddress: 0x8
76 # CHECK64-NEXT: VirtualAddress: 0x8
77 # CHECK64-NEXT: Size: 0x0
78 # CHECK64-NEXT: RawDataOffset: 0x0
79 # CHECK64-NEXT: RelocationPointer: 0x144
80 # CHECK64-NEXT: LineNumberPointer: 0x0
81 # CHECK64-NEXT: NumberOfRelocations: 1
82 # CHECK64-NEXT: NumberOfLineNumbers: 0
83 # CHECK64-NEXT: Type: STYP_BSS (0x80)
85 # CHECK64-NEXT: Section {
86 # CHECK64-NEXT: Index: 4
87 # CHECK64-NEXT: Name: .debug
88 # CHECK64-NEXT: PhysicalAddress: 0x0
89 # CHECK64-NEXT: VirtualAddress: 0x0
90 # CHECK64-NEXT: Size: 0x60
91 # CHECK64-NEXT: RawDataOffset: 0x140
92 # CHECK64-NEXT: RelocationPointer: 0x0
93 # CHECK64-NEXT: LineNumberPointer: 0x0
94 # CHECK64-NEXT: NumberOfRelocations: 0
95 # CHECK64-NEXT: NumberOfLineNumbers: 0
96 # CHECK64-NEXT: Type: 0x2040
99 # CHECK64-NEXT: Symbols [
100 # CHECK64-NEXT: Symbol {
101 # CHECK64-NEXT: Index: 0
102 # CHECK64-NEXT: Name: .file
103 # CHECK64-NEXT: Value: 0x0
104 # CHECK64-NEXT: Section: N_DEBUG
105 # CHECK64-NEXT: Type: 0x0
106 # CHECK64-NEXT: StorageClass: C_NULL (0x0)
107 # CHECK64-NEXT: NumberOfAuxEntries: 0
109 # CHECK64-NEXT: Symbol {
110 # CHECK64-NEXT: Index: 1
111 # CHECK64-NEXT: Name: .undef
112 # CHECK64-NEXT: Value: 0x0
113 # CHECK64-NEXT: Section: N_UNDEF
114 # CHECK64-NEXT: Type: 0x0
115 # CHECK64-NEXT: StorageClass: C_NULL (0x0)
116 # CHECK64-NEXT: NumberOfAuxEntries: 0
118 # CHECK64-NEXT: Symbol {
119 # CHECK64-NEXT: Index: 2
120 # CHECK64-NEXT: Name: .abs
121 # CHECK64-NEXT: Value: 0x0
122 # CHECK64-NEXT: Section: N_ABS
123 # CHECK64-NEXT: Type: 0x0
124 # CHECK64-NEXT: StorageClass: C_NULL (0x0)
125 # CHECK64-NEXT: NumberOfAuxEntries: 0
127 # CHECK64-NEXT: Symbol {
128 # CHECK64-NEXT: Index: 3
129 # CHECK64-NEXT: Name: .text
130 # CHECK64-NEXT: Value (RelocatableAddress): 0x0
131 # CHECK64-NEXT: Section: .text
132 # CHECK64-NEXT: Type: 0x0
133 # CHECK64-NEXT: StorageClass: C_HIDEXT (0x6B)
134 # CHECK64-NEXT: NumberOfAuxEntries: 0
137 # CHECK64-NEXT: StringTable {
138 # CHECK64-NEXT: Length: 28
139 # CHECK64-NEXT: [ 4] .text
140 # CHECK64-NEXT: [ a] .abs
141 # CHECK64-NEXT: [ f] .undef
142 # CHECK64-NEXT: [ 16] .file