1 RUN: llvm-readobj --file-headers --sections --symbols --relocations %p/Inputs/bigobj.coff-x86-64 | FileCheck %s
3 CHECK: File: {{(.*[/\\])?}}bigobj.coff-x86-64
4 CHECK-NEXT: Format: COFF-x86-64
5 CHECK-NEXT: Arch: x86_64
6 CHECK-NEXT: AddressSize: 64bit
7 CHECK-NEXT: ImageFileHeader {
8 CHECK-NEXT: Machine: IMAGE_FILE_MACHINE_AMD64 (0x8664)
9 CHECK-NEXT: SectionCount: 3
10 CHECK-NEXT: TimeDateStamp: 1970-01-01 00:00:00 (0x0)
11 CHECK-NEXT: PointerToSymbolTable: 0xB0
12 CHECK-NEXT: SymbolCount: 8
13 CHECK-NEXT: StringTableSize: 4
14 CHECK-NEXT: OptionalHeaderSize: 0
15 CHECK-NEXT: Characteristics [ (0x0)
18 CHECK-NEXT: Sections [
21 CHECK-NEXT: Name: .text (2E 74 65 78 74 00 00 00)
22 CHECK-NEXT: VirtualSize: 0x0
23 CHECK-NEXT: VirtualAddress: 0x0
24 CHECK-NEXT: RawDataSize: 0
25 CHECK-NEXT: PointerToRawData: 0x0
26 CHECK-NEXT: PointerToRelocations: 0x0
27 CHECK-NEXT: PointerToLineNumbers: 0x0
28 CHECK-NEXT: RelocationCount: 0
29 CHECK-NEXT: LineNumberCount: 0
30 CHECK-NEXT: Characteristics [ (0x60500020)
31 CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000)
32 CHECK-NEXT: IMAGE_SCN_CNT_CODE (0x20)
33 CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE (0x20000000)
34 CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
39 CHECK-NEXT: Name: .data (2E 64 61 74 61 00 00 00)
40 CHECK-NEXT: VirtualSize: 0x0
41 CHECK-NEXT: VirtualAddress: 0x0
42 CHECK-NEXT: RawDataSize: 0
43 CHECK-NEXT: PointerToRawData: 0x0
44 CHECK-NEXT: PointerToRelocations: 0x0
45 CHECK-NEXT: PointerToLineNumbers: 0x0
46 CHECK-NEXT: RelocationCount: 0
47 CHECK-NEXT: LineNumberCount: 0
48 CHECK-NEXT: Characteristics [ (0xC0500040)
49 CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000)
50 CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
51 CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
52 CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000)
57 CHECK-NEXT: Name: .bss (2E 62 73 73 00 00 00 00)
58 CHECK-NEXT: VirtualSize: 0x0
59 CHECK-NEXT: VirtualAddress: 0x0
60 CHECK-NEXT: RawDataSize: 0
61 CHECK-NEXT: PointerToRawData: 0x0
62 CHECK-NEXT: PointerToRelocations: 0x0
63 CHECK-NEXT: PointerToLineNumbers: 0x0
64 CHECK-NEXT: RelocationCount: 0
65 CHECK-NEXT: LineNumberCount: 0
66 CHECK-NEXT: Characteristics [ (0xC0500080)
67 CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000)
68 CHECK-NEXT: IMAGE_SCN_CNT_UNINITIALIZED_DATA (0x80)
69 CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
70 CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000)
74 CHECK-NEXT: Relocations [
78 CHECK-NEXT: Name: .file
80 CHECK-NEXT: Section: IMAGE_SYM_DEBUG (-2)
81 CHECK-NEXT: BaseType: Null (0x0)
82 CHECK-NEXT: ComplexType: Null (0x0)
83 CHECK-NEXT: StorageClass: File (0x67)
84 CHECK-NEXT: AuxSymbolCount: 1
85 CHECK-NEXT: AuxFileRecord {
86 CHECK-NEXT: FileName: fake
90 CHECK-NEXT: Name: .text
92 CHECK-NEXT: Section: .text (1)
93 CHECK-NEXT: BaseType: Null (0x0)
94 CHECK-NEXT: ComplexType: Null (0x0)
95 CHECK-NEXT: StorageClass: Static (0x3)
96 CHECK-NEXT: AuxSymbolCount: 1
97 CHECK-NEXT: AuxSectionDef {
99 CHECK-NEXT: RelocationCount: 0
100 CHECK-NEXT: LineNumberCount: 0
101 CHECK-NEXT: Checksum: 0x0
102 CHECK-NEXT: Number: 0
103 CHECK-NEXT: Selection: 0x0
107 CHECK-NEXT: Name: .data
109 CHECK-NEXT: Section: .data (2)
110 CHECK-NEXT: BaseType: Null (0x0)
111 CHECK-NEXT: ComplexType: Null (0x0)
112 CHECK-NEXT: StorageClass: Static (0x3)
113 CHECK-NEXT: AuxSymbolCount: 1
114 CHECK-NEXT: AuxSectionDef {
115 CHECK-NEXT: Length: 0
116 CHECK-NEXT: RelocationCount: 0
117 CHECK-NEXT: LineNumberCount: 0
118 CHECK-NEXT: Checksum: 0x0
119 CHECK-NEXT: Number: 0
120 CHECK-NEXT: Selection: 0x0
124 CHECK-NEXT: Name: .bss
126 CHECK-NEXT: Section: .bss (3)
127 CHECK-NEXT: BaseType: Null (0x0)
128 CHECK-NEXT: ComplexType: Null (0x0)
129 CHECK-NEXT: StorageClass: Static (0x3)
130 CHECK-NEXT: AuxSymbolCount: 1
131 CHECK-NEXT: AuxSectionDef {
132 CHECK-NEXT: Length: 0
133 CHECK-NEXT: RelocationCount: 0
134 CHECK-NEXT: LineNumberCount: 0
135 CHECK-NEXT: Checksum: 0x0
136 CHECK-NEXT: Number: 0
137 CHECK-NEXT: Selection: 0x0