1 // Check dumping of the .rsrc section(s)
2 // The input was generated with the following commands, using the original Windows
3 // rc.exe and cvtres.exe:
4 // > rc /fo test_resource.res /nologo test_resource.rc
5 // > cvtres /machine:X86 /readonly /nologo /out:test_resource.o test_resource.res
7 RUN: llvm-readobj --coff-resources --section-data %p/Inputs/zero-string-table.obj.coff-i386 \
8 RUN: | FileCheck %s -check-prefix ZERO
9 RUN: llvm-readobj --coff-resources %p/Inputs/resources/test_resource.obj.coff \
10 RUN: | FileCheck %s -check-prefix TEST_RES
13 ZERO-NEXT: Total Number of Resources: 1
14 ZERO-NEXT: Base Table Address: 0x188
15 ZERO-DAG: Number of String Entries: 0
16 ZERO-NEXT: Number of ID Entries: 1
17 ZERO-NEXT: Type: STRINGTABLE (ID 6) [
18 ZERO-NEXT: Table Offset: 0x18
19 ZERO-NEXT: Number of String Entries: 0
20 ZERO-NEXT: Number of ID Entries: 1
21 ZERO-NEXT: Name: (ID 1) [
22 ZERO-NEXT: Table Offset: 0x30
23 ZERO-NEXT: Number of String Entries: 0
24 ZERO-NEXT: Number of ID Entries: 1
25 ZERO-NEXT: Language: (ID 1033) [
26 ZERO-NEXT: Entry Offset: 0x48
27 ZERO-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
28 ZERO-NEXT: Major Version: 0
29 ZERO-NEXT: Minor Version: 0
30 ZERO-NEXT: Characteristics: 0
32 ZERO-NEXT: DataRVA: 0x0
33 ZERO-NEXT: DataSize: 42
34 ZERO-NEXT: Codepage: 0
35 ZERO-NEXT: Reserved: 0
37 ZERO-NEXT: 0000: 00000500 48006500 6C006C00 6F000000 |....H.e.l.l.o...|
38 ZERO-NEXT: 0010: 00000000 00000000 00000000 00000000 |................|
39 ZERO-NEXT: 0020: 00000000 00000000 0000 |..........|
47 TEST_RES-NEXT: Total Number of Resources: 7
48 TEST_RES-NEXT: Base Table Address: 0x1C0
49 TEST_RES-DAG: Number of String Entries: 0
50 TEST_RES-NEXT: Number of ID Entries: 4
51 TEST_RES-NEXT: Type: BITMAP (ID 2) [
52 TEST_RES-NEXT: Table Offset: 0x30
53 TEST_RES-NEXT: Number of String Entries: 2
54 TEST_RES-NEXT: Number of ID Entries: 0
55 TEST_RES-NEXT: Name: CURSOR [
56 TEST_RES-NEXT: Table Offset: 0xA8
57 TEST_RES-NEXT: Number of String Entries: 0
58 TEST_RES-NEXT: Number of ID Entries: 1
59 TEST_RES-NEXT: Language: (ID 1033) [
60 TEST_RES-NEXT: Entry Offset: 0x150
61 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
62 TEST_RES-NEXT: Major Version: 0
63 TEST_RES-NEXT: Minor Version: 0
64 TEST_RES-NEXT: Characteristics: 0
66 TEST_RES-NEXT: DataRVA: 0x0
67 TEST_RES-NEXT: DataSize: 808
68 TEST_RES-NEXT: Codepage: 0
69 TEST_RES-NEXT: Reserved: 0
75 TEST_RES-NEXT: Name: OKAY [
76 TEST_RES-NEXT: Table Offset: 0xC0
77 TEST_RES-NEXT: Number of String Entries: 0
78 TEST_RES-NEXT: Number of ID Entries: 1
79 TEST_RES-NEXT: Language: (ID 1033) [
80 TEST_RES-NEXT: Entry Offset: 0x160
81 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
82 TEST_RES-NEXT: Major Version: 0
83 TEST_RES-NEXT: Minor Version: 0
84 TEST_RES-NEXT: Characteristics: 0
86 TEST_RES-NEXT: DataRVA: 0x0
87 TEST_RES-NEXT: DataSize: 808
88 TEST_RES-NEXT: Codepage: 0
89 TEST_RES-NEXT: Reserved: 0
96 TEST_RES-NEXT: Type: MENU (ID 4) [
97 TEST_RES-NEXT: Table Offset: 0x50
98 TEST_RES-NEXT: Number of String Entries: 1
99 TEST_RES-NEXT: Number of ID Entries: 1
100 TEST_RES-NEXT: Name: "EAT" [
101 TEST_RES-NEXT: Table Offset: 0xD8
102 TEST_RES-NEXT: Number of String Entries: 0
103 TEST_RES-NEXT: Number of ID Entries: 1
104 TEST_RES-NEXT: Language: (ID 3081) [
105 TEST_RES-NEXT: Entry Offset: 0x170
106 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
107 TEST_RES-NEXT: Major Version: 0
108 TEST_RES-NEXT: Minor Version: 0
109 TEST_RES-NEXT: Characteristics: 0
110 TEST_RES-NEXT: Data [
111 TEST_RES-NEXT: DataRVA: 0x0
112 TEST_RES-NEXT: DataSize: 48
113 TEST_RES-NEXT: Codepage: 0
114 TEST_RES-NEXT: Reserved: 0
115 TEST_RES-NEXT: Data (
120 TEST_RES-NEXT: Name: (ID 14432) [
121 TEST_RES-NEXT: Table Offset: 0xF0
122 TEST_RES-NEXT: Number of String Entries: 0
123 TEST_RES-NEXT: Number of ID Entries: 1
124 TEST_RES-NEXT: Language: (ID 2052) [
125 TEST_RES-NEXT: Entry Offset: 0x180
126 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
127 TEST_RES-NEXT: Major Version: 0
128 TEST_RES-NEXT: Minor Version: 0
129 TEST_RES-NEXT: Characteristics: 0
130 TEST_RES-NEXT: Data [
131 TEST_RES-NEXT: DataRVA: 0x0
132 TEST_RES-NEXT: DataSize: 46
133 TEST_RES-NEXT: Codepage: 0
134 TEST_RES-NEXT: Reserved: 0
135 TEST_RES-NEXT: Data (
141 TEST_RES-NEXT: Type: DIALOG (ID 5) [
142 TEST_RES-NEXT: Table Offset: 0x70
143 TEST_RES-NEXT: Number of String Entries: 1
144 TEST_RES-NEXT: Number of ID Entries: 0
145 TEST_RES-NEXT: Name: TESTDIALOG [
146 TEST_RES-NEXT: Table Offset: 0x108
147 TEST_RES-NEXT: Number of String Entries: 0
148 TEST_RES-NEXT: Number of ID Entries: 1
149 TEST_RES-NEXT: Language: (ID 1033) [
150 TEST_RES-NEXT: Entry Offset: 0x190
151 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
152 TEST_RES-NEXT: Major Version: 0
153 TEST_RES-NEXT: Minor Version: 0
154 TEST_RES-NEXT: Characteristics: 0
155 TEST_RES-NEXT: Data [
156 TEST_RES-NEXT: DataRVA: 0x0
157 TEST_RES-NEXT: DataSize: 108
158 TEST_RES-NEXT: Codepage: 0
159 TEST_RES-NEXT: Reserved: 0
160 TEST_RES-NEXT: Data (
166 TEST_RES-NEXT: Type: ACCELERATOR (ID 9) [
167 TEST_RES-NEXT: Table Offset: 0x88
168 TEST_RES-NEXT: Number of String Entries: 1
169 TEST_RES-NEXT: Number of ID Entries: 1
170 TEST_RES-NEXT: Name: MYACCELERATORS [
171 TEST_RES-NEXT: Table Offset: 0x120
172 TEST_RES-NEXT: Number of String Entries: 0
173 TEST_RES-NEXT: Number of ID Entries: 1
174 TEST_RES-NEXT: Language: (ID 1033) [
175 TEST_RES-NEXT: Entry Offset: 0x1A0
176 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
177 TEST_RES-NEXT: Major Version: 0
178 TEST_RES-NEXT: Minor Version: 0
179 TEST_RES-NEXT: Characteristics: 0
180 TEST_RES-NEXT: Data [
181 TEST_RES-NEXT: DataRVA: 0x0
182 TEST_RES-NEXT: DataSize: 24
183 TEST_RES-NEXT: Codepage: 0
184 TEST_RES-NEXT: Reserved: 0
185 TEST_RES-NEXT: Data (
190 TEST_RES-NEXT: Name: (ID 12) [
191 TEST_RES-NEXT: Table Offset: 0x138
192 TEST_RES-NEXT: Number of String Entries: 0
193 TEST_RES-NEXT: Number of ID Entries: 1
194 TEST_RES-NEXT: Language: (ID 1033) [
195 TEST_RES-NEXT: Entry Offset: 0x1B0
196 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
197 TEST_RES-NEXT: Major Version: 0
198 TEST_RES-NEXT: Minor Version: 0
199 TEST_RES-NEXT: Characteristics: 0
200 TEST_RES-NEXT: Data [
201 TEST_RES-NEXT: DataRVA: 0x0
202 TEST_RES-NEXT: DataSize: 24
203 TEST_RES-NEXT: Codepage: 0
204 TEST_RES-NEXT: Reserved: 0
205 TEST_RES-NEXT: Data (