Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-readobj / COFF / bigobj.test
blob36d1baa4a639c40d56b052e46873dbabb64a7154
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)
16 CHECK-NEXT:   ]
17 CHECK-NEXT: }
18 CHECK-NEXT: Sections [
19 CHECK-NEXT:   Section {
20 CHECK-NEXT:     Number: 1
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)
35 CHECK-NEXT:     ]
36 CHECK-NEXT:   }
37 CHECK-NEXT:   Section {
38 CHECK-NEXT:     Number: 2
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)
53 CHECK-NEXT:     ]
54 CHECK-NEXT:   }
55 CHECK-NEXT:   Section {
56 CHECK-NEXT:     Number: 3
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)
71 CHECK-NEXT:     ]
72 CHECK-NEXT:   }
73 CHECK-NEXT: ]
74 CHECK-NEXT: Relocations [
75 CHECK-NEXT: ]
76 CHECK-NEXT: Symbols [
77 CHECK-NEXT:   Symbol {
78 CHECK-NEXT:     Name: .file
79 CHECK-NEXT:     Value: 0
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
87 CHECK-NEXT:     }
88 CHECK-NEXT:   }
89 CHECK-NEXT:   Symbol {
90 CHECK-NEXT:     Name: .text
91 CHECK-NEXT:     Value: 0
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 {
98 CHECK-NEXT:       Length: 0
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
104 CHECK-NEXT:     }
105 CHECK-NEXT:   }
106 CHECK-NEXT:   Symbol {
107 CHECK-NEXT:     Name: .data
108 CHECK-NEXT:     Value: 0
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
121 CHECK-NEXT:     }
122 CHECK-NEXT:   }
123 CHECK-NEXT:   Symbol {
124 CHECK-NEXT:     Name: .bss
125 CHECK-NEXT:     Value: 0
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
138 CHECK-NEXT:     }
139 CHECK-NEXT:   }
140 CHECK-NEXT: ]