[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / crt-chars.test
blob0933c9649b80c69b25b0db1707ff32060767fd6a
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.dll /entry:__ImageBase /dll %t.obj
3 # RUN: llvm-readobj --sections --section-data %t.dll | FileCheck %s
5 # CHECK: Name: .CRT
6 # CHECK: Characteristics [
7 # CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
8 # CHECK-NEXT: IMAGE_SCN_MEM_READ
9 # CHECK-NEXT: ]
10 # CHECK-NEXT: SectionData (
11 # CHECK-NEXT: 010203
12 # CHECK-NEXT: )
14 --- !COFF
15 header:
16   Machine:         IMAGE_FILE_MACHINE_AMD64
17   Characteristics: [  ]
18 sections:
19   - Name:            .CRT$XCZ
20     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
21     Alignment:       1
22     SectionData:     03
23   - Name:            .CRT$XCU
24     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
25     Alignment:       1
26     SectionData:     02
27   - Name:            .CRT$XCA
28     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
29     Alignment:       1
30     SectionData:     01
31 symbols:
32 ...