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 6 7RUN: llvm-readobj -coff-resources -section-data %p/Inputs/zero-string-table.obj.coff-i386 \ 8RUN: | FileCheck %s -check-prefix ZERO 9RUN: llvm-readobj -coff-resources %p/Inputs/resources/test_resource.obj.coff \ 10RUN: | FileCheck %s -check-prefix TEST_RES 11 12ZERO: Resources [ 13ZERO-NEXT: Total Number of Resources: 1 14ZERO-NEXT: Base Table Address: 0x188 15ZERO-DAG: Number of String Entries: 0 16ZERO-NEXT: Number of ID Entries: 1 17ZERO-NEXT: Type: kRT_STRING (ID 6) [ 18ZERO-NEXT: Table Offset: 0x18 19ZERO-NEXT: Number of String Entries: 0 20ZERO-NEXT: Number of ID Entries: 1 21ZERO-NEXT: Name: (ID 1) [ 22ZERO-NEXT: Table Offset: 0x30 23ZERO-NEXT: Number of String Entries: 0 24ZERO-NEXT: Number of ID Entries: 1 25ZERO-NEXT: Language: (ID 1033) [ 26ZERO-NEXT: Entry Offset: 0x48 27ZERO-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 28ZERO-NEXT: Major Version: 0 29ZERO-NEXT: Minor Version: 0 30ZERO-NEXT: Characteristics: 0 31ZERO-NEXT: ] 32ZERO-NEXT: ] 33ZERO-NEXT: ] 34 35TEST_RES: Resources [ 36TEST_RES-NEXT: Total Number of Resources: 7 37TEST_RES-NEXT: Base Table Address: 0x1C0 38TEST_RES-DAG: Number of String Entries: 0 39TEST_RES-NEXT: Number of ID Entries: 4 40TEST_RES-NEXT: Type: kRT_BITMAP (ID 2) [ 41TEST_RES-NEXT: Table Offset: 0x30 42TEST_RES-NEXT: Number of String Entries: 2 43TEST_RES-NEXT: Number of ID Entries: 0 44TEST_RES-NEXT: Name: CURSOR [ 45TEST_RES-NEXT: Table Offset: 0xA8 46TEST_RES-NEXT: Number of String Entries: 0 47TEST_RES-NEXT: Number of ID Entries: 1 48TEST_RES-NEXT: Language: (ID 1033) [ 49TEST_RES-NEXT: Entry Offset: 0x150 50TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 51TEST_RES-NEXT: Major Version: 0 52TEST_RES-NEXT: Minor Version: 0 53TEST_RES-NEXT: Characteristics: 0 54TEST_RES-NEXT: ] 55TEST_RES-NEXT: ] 56TEST_RES-NEXT: Name: OKAY [ 57TEST_RES-NEXT: Table Offset: 0xC0 58TEST_RES-NEXT: Number of String Entries: 0 59TEST_RES-NEXT: Number of ID Entries: 1 60TEST_RES-NEXT: Language: (ID 1033) [ 61TEST_RES-NEXT: Entry Offset: 0x160 62TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 63TEST_RES-NEXT: Major Version: 0 64TEST_RES-NEXT: Minor Version: 0 65TEST_RES-NEXT: Characteristics: 0 66TEST_RES-NEXT: ] 67TEST_RES-NEXT: ] 68TEST_RES-NEXT: ] 69TEST_RES-NEXT: Type: kRT_MENU (ID 4) [ 70TEST_RES-NEXT: Table Offset: 0x50 71TEST_RES-NEXT: Number of String Entries: 1 72TEST_RES-NEXT: Number of ID Entries: 1 73TEST_RES-NEXT: Name: "EAT" [ 74TEST_RES-NEXT: Table Offset: 0xD8 75TEST_RES-NEXT: Number of String Entries: 0 76TEST_RES-NEXT: Number of ID Entries: 1 77TEST_RES-NEXT: Language: (ID 3081) [ 78TEST_RES-NEXT: Entry Offset: 0x170 79TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 80TEST_RES-NEXT: Major Version: 0 81TEST_RES-NEXT: Minor Version: 0 82TEST_RES-NEXT: Characteristics: 0 83TEST_RES-NEXT: ] 84TEST_RES-NEXT: ] 85TEST_RES-NEXT: Name: (ID 14432) [ 86TEST_RES-NEXT: Table Offset: 0xF0 87TEST_RES-NEXT: Number of String Entries: 0 88TEST_RES-NEXT: Number of ID Entries: 1 89TEST_RES-NEXT: Language: (ID 2052) [ 90TEST_RES-NEXT: Entry Offset: 0x180 91TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 92TEST_RES-NEXT: Major Version: 0 93TEST_RES-NEXT: Minor Version: 0 94TEST_RES-NEXT: Characteristics: 0 95TEST_RES-NEXT: ] 96TEST_RES-NEXT: ] 97TEST_RES-NEXT: ] 98TEST_RES-NEXT: Type: kRT_DIALOG (ID 5) [ 99TEST_RES-NEXT: Table Offset: 0x70 100TEST_RES-NEXT: Number of String Entries: 1 101TEST_RES-NEXT: Number of ID Entries: 0 102TEST_RES-NEXT: Name: TESTDIALOG [ 103TEST_RES-NEXT: Table Offset: 0x108 104TEST_RES-NEXT: Number of String Entries: 0 105TEST_RES-NEXT: Number of ID Entries: 1 106TEST_RES-NEXT: Language: (ID 1033) [ 107TEST_RES-NEXT: Entry Offset: 0x190 108TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 109TEST_RES-NEXT: Major Version: 0 110TEST_RES-NEXT: Minor Version: 0 111TEST_RES-NEXT: Characteristics: 0 112TEST_RES-NEXT: ] 113TEST_RES-NEXT: ] 114TEST_RES-NEXT: ] 115TEST_RES-NEXT: Type: kRT_ACCELERATOR (ID 9) [ 116TEST_RES-NEXT: Table Offset: 0x88 117TEST_RES-NEXT: Number of String Entries: 1 118TEST_RES-NEXT: Number of ID Entries: 1 119TEST_RES-NEXT: Name: MYACCELERATORS [ 120TEST_RES-NEXT: Table Offset: 0x120 121TEST_RES-NEXT: Number of String Entries: 0 122TEST_RES-NEXT: Number of ID Entries: 1 123TEST_RES-NEXT: Language: (ID 1033) [ 124TEST_RES-NEXT: Entry Offset: 0x1A0 125TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 126TEST_RES-NEXT: Major Version: 0 127TEST_RES-NEXT: Minor Version: 0 128TEST_RES-NEXT: Characteristics: 0 129TEST_RES-NEXT: ] 130TEST_RES-NEXT: ] 131TEST_RES-NEXT: Name: (ID 12) [ 132TEST_RES-NEXT: Table Offset: 0x138 133TEST_RES-NEXT: Number of String Entries: 0 134TEST_RES-NEXT: Number of ID Entries: 1 135TEST_RES-NEXT: Language: (ID 1033) [ 136TEST_RES-NEXT: Entry Offset: 0x1B0 137TEST_RES-NEXT: Time/Date Stamp: 1970-01-01 00:00:00 (0x0) 138TEST_RES-NEXT: Major Version: 0 139TEST_RES-NEXT: Minor Version: 0 140TEST_RES-NEXT: Characteristics: 0 141TEST_RES-NEXT: ] 142TEST_RES-NEXT: ] 143TEST_RES-NEXT: ] 144