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
36 TEST_RES-NEXT: Total Number of Resources: 7
37 TEST_RES-NEXT: Base Table Address: 0x1C0
38 TEST_RES-DAG: Number of String Entries: 0
39 TEST_RES-NEXT: Number of ID Entries: 4
40 TEST_RES-NEXT: Type: BITMAP (ID 2) [
41 TEST_RES-NEXT: Table Offset: 0x30
42 TEST_RES-NEXT: Number of String Entries: 2
43 TEST_RES-NEXT: Number of ID Entries: 0
44 TEST_RES-NEXT: Name: CURSOR [
45 TEST_RES-NEXT: Table Offset: 0xA8
46 TEST_RES-NEXT: Number of String Entries: 0
47 TEST_RES-NEXT: Number of ID Entries: 1
48 TEST_RES-NEXT: Language: (ID 1033) [
49 TEST_RES-NEXT: Entry Offset: 0x150
50 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
51 TEST_RES-NEXT: Major Version: 0
52 TEST_RES-NEXT: Minor Version: 0
53 TEST_RES-NEXT: Characteristics: 0
56 TEST_RES-NEXT: Name: OKAY [
57 TEST_RES-NEXT: Table Offset: 0xC0
58 TEST_RES-NEXT: Number of String Entries: 0
59 TEST_RES-NEXT: Number of ID Entries: 1
60 TEST_RES-NEXT: Language: (ID 1033) [
61 TEST_RES-NEXT: Entry Offset: 0x160
62 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
63 TEST_RES-NEXT: Major Version: 0
64 TEST_RES-NEXT: Minor Version: 0
65 TEST_RES-NEXT: Characteristics: 0
69 TEST_RES-NEXT: Type: MENU (ID 4) [
70 TEST_RES-NEXT: Table Offset: 0x50
71 TEST_RES-NEXT: Number of String Entries: 1
72 TEST_RES-NEXT: Number of ID Entries: 1
73 TEST_RES-NEXT: Name: "EAT" [
74 TEST_RES-NEXT: Table Offset: 0xD8
75 TEST_RES-NEXT: Number of String Entries: 0
76 TEST_RES-NEXT: Number of ID Entries: 1
77 TEST_RES-NEXT: Language: (ID 3081) [
78 TEST_RES-NEXT: Entry Offset: 0x170
79 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
80 TEST_RES-NEXT: Major Version: 0
81 TEST_RES-NEXT: Minor Version: 0
82 TEST_RES-NEXT: Characteristics: 0
85 TEST_RES-NEXT: Name: (ID 14432) [
86 TEST_RES-NEXT: Table Offset: 0xF0
87 TEST_RES-NEXT: Number of String Entries: 0
88 TEST_RES-NEXT: Number of ID Entries: 1
89 TEST_RES-NEXT: Language: (ID 2052) [
90 TEST_RES-NEXT: Entry Offset: 0x180
91 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
92 TEST_RES-NEXT: Major Version: 0
93 TEST_RES-NEXT: Minor Version: 0
94 TEST_RES-NEXT: Characteristics: 0
98 TEST_RES-NEXT: Type: DIALOG (ID 5) [
99 TEST_RES-NEXT: Table Offset: 0x70
100 TEST_RES-NEXT: Number of String Entries: 1
101 TEST_RES-NEXT: Number of ID Entries: 0
102 TEST_RES-NEXT: Name: TESTDIALOG [
103 TEST_RES-NEXT: Table Offset: 0x108
104 TEST_RES-NEXT: Number of String Entries: 0
105 TEST_RES-NEXT: Number of ID Entries: 1
106 TEST_RES-NEXT: Language: (ID 1033) [
107 TEST_RES-NEXT: Entry Offset: 0x190
108 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
109 TEST_RES-NEXT: Major Version: 0
110 TEST_RES-NEXT: Minor Version: 0
111 TEST_RES-NEXT: Characteristics: 0
115 TEST_RES-NEXT: Type: ACCELERATOR (ID 9) [
116 TEST_RES-NEXT: Table Offset: 0x88
117 TEST_RES-NEXT: Number of String Entries: 1
118 TEST_RES-NEXT: Number of ID Entries: 1
119 TEST_RES-NEXT: Name: MYACCELERATORS [
120 TEST_RES-NEXT: Table Offset: 0x120
121 TEST_RES-NEXT: Number of String Entries: 0
122 TEST_RES-NEXT: Number of ID Entries: 1
123 TEST_RES-NEXT: Language: (ID 1033) [
124 TEST_RES-NEXT: Entry Offset: 0x1A0
125 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
126 TEST_RES-NEXT: Major Version: 0
127 TEST_RES-NEXT: Minor Version: 0
128 TEST_RES-NEXT: Characteristics: 0
131 TEST_RES-NEXT: Name: (ID 12) [
132 TEST_RES-NEXT: Table Offset: 0x138
133 TEST_RES-NEXT: Number of String Entries: 0
134 TEST_RES-NEXT: Number of ID Entries: 1
135 TEST_RES-NEXT: Language: (ID 1033) [
136 TEST_RES-NEXT: Entry Offset: 0x1B0
137 TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0)
138 TEST_RES-NEXT: Major Version: 0
139 TEST_RES-NEXT: Minor Version: 0
140 TEST_RES-NEXT: Characteristics: 0