[LLD][COFF] Fix TypeServerSource matcher with more than one collision
[llvm-project.git] / lld / test / COFF / tls32.test
blob4e67c2769a7c7fd775e5b527e41660fff641fce4
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link -safeseh:no /out:%t.exe /entry:main %t.obj
3 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
5 # CHECK: TLSTableRVA: 0x1000
6 # CHECK: TLSTableSize: 0x18
8 --- !COFF
9 header:
10   Machine:         IMAGE_FILE_MACHINE_I386
11   Characteristics: []
12 sections:
13   - Name:            .text
14     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
15     Alignment:       4
16     SectionData:     00000000
17 symbols:
18   - Name:            .text
19     Value:           0
20     SectionNumber:   1
21     SimpleType:      IMAGE_SYM_TYPE_NULL
22     ComplexType:     IMAGE_SYM_DTYPE_NULL
23     StorageClass:    IMAGE_SYM_CLASS_STATIC
24     SectionDefinition:
25       Length:          4
26       NumberOfRelocations: 0
27       NumberOfLinenumbers: 0
28       CheckSum:        0
29       Number:          0
30       Selection:       IMAGE_COMDAT_SELECT_ANY
31   - Name:            _main
32     Value:           0
33     SectionNumber:   1
34     SimpleType:      IMAGE_SYM_TYPE_NULL
35     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
36     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
37   - Name:            __tls_used
38     Value:           0
39     SectionNumber:   1
40     SimpleType:      IMAGE_SYM_TYPE_NULL
41     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
42     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
43 ...