1 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link /out:%t.exe /entry:main %t.obj /verbose >& %t.log
4 ### FileCheck doesn't like empty input, so write something.
5 # RUN: echo dummy >> %t.log
6 # RUN: FileCheck -check-prefix=CHECK1 %s < %t.log
8 # RUN: lld-link /out:%t.exe /entry:main %t.obj /verbose /include:unused >& %t.log
9 # RUN: echo dummy >> %t.log
10 # RUN: FileCheck -check-prefix=CHECK2 %s < %t.log
12 # RUN: lld-link /out:%t.exe /entry:main %t.obj /verbose /includeglob:"glob_*" >& %t.log
13 # RUN: echo dummy >> %t.log
14 # RUN: FileCheck -check-prefix=CHECK3 %s < %t.log
16 # CHECK1: Discarded unused
17 # CHECK1: Discarded glob_match1
18 # CHECK1: Discarded glob_match2
19 # CHECK1-NOT: Discarded used
20 # CHECK2-NOT: Discarded unused
21 # CHECK2-NOT: Discarded used
22 # CHECK3-NOT: Discarded glob_match1
23 # CHECK3-NOT: Discarded glob_match2
27 Machine: IMAGE_FILE_MACHINE_AMD64
31 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
33 SectionData: B82A000000C3
35 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
37 SectionData: B82A000000C3
39 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
41 SectionData: B82A000000C3
43 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
45 SectionData: B82A000000C3
47 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
49 SectionData: B82A000000C3
51 Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
53 SectionData: 2f696e636c7564653a7573656400 # /include:used
58 SimpleType: IMAGE_SYM_TYPE_NULL
59 ComplexType: IMAGE_SYM_DTYPE_NULL
60 StorageClass: IMAGE_SYM_CLASS_STATIC
63 NumberOfRelocations: 0
64 NumberOfLinenumbers: 0
67 Selection: IMAGE_COMDAT_SELECT_ANY
71 SimpleType: IMAGE_SYM_TYPE_NULL
72 ComplexType: IMAGE_SYM_DTYPE_NULL
73 StorageClass: IMAGE_SYM_CLASS_STATIC
76 NumberOfRelocations: 0
77 NumberOfLinenumbers: 0
80 Selection: IMAGE_COMDAT_SELECT_ANY
84 SimpleType: IMAGE_SYM_TYPE_NULL
85 ComplexType: IMAGE_SYM_DTYPE_NULL
86 StorageClass: IMAGE_SYM_CLASS_STATIC
89 NumberOfRelocations: 0
90 NumberOfLinenumbers: 0
93 Selection: IMAGE_COMDAT_SELECT_ANY
97 SimpleType: IMAGE_SYM_TYPE_NULL
98 ComplexType: IMAGE_SYM_DTYPE_NULL
99 StorageClass: IMAGE_SYM_CLASS_STATIC
102 NumberOfRelocations: 0
103 NumberOfLinenumbers: 0
106 Selection: IMAGE_COMDAT_SELECT_ANY
110 SimpleType: IMAGE_SYM_TYPE_NULL
111 ComplexType: IMAGE_SYM_DTYPE_NULL
112 StorageClass: IMAGE_SYM_CLASS_STATIC
115 NumberOfRelocations: 0
116 NumberOfLinenumbers: 0
119 Selection: IMAGE_COMDAT_SELECT_ANY
123 SimpleType: IMAGE_SYM_TYPE_NULL
124 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
125 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
129 SimpleType: IMAGE_SYM_TYPE_NULL
130 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
131 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
135 SimpleType: IMAGE_SYM_TYPE_NULL
136 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
137 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
141 SimpleType: IMAGE_SYM_TYPE_NULL
142 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
143 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
147 SimpleType: IMAGE_SYM_TYPE_NULL
148 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
149 StorageClass: IMAGE_SYM_CLASS_EXTERNAL