1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: not lld-link %t.obj /subsystem:console 2>&1 | FileCheck %s
4 # CHECK: lld-link: error: undefined symbol: function
5 # CHECK-NEXT: >>> referenced by {{.*}}line-error.yaml.tmp.obj:(caller1)
6 # CHECK-NEXT: >>> referenced by E:\file.cpp:1935
7 # CHECK-NEXT: >>> {{.*}}line-error.yaml.tmp.obj:(caller22)
11 Machine: IMAGE_FILE_MACHINE_AMD64
15 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
17 SectionData: 488B0500000000488B51284881C2D80000004889C148FF2500000000
21 Type: IMAGE_REL_AMD64_REL32
23 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
25 SectionData: 488B0500000000488B51084881C2D80000004889C148FF2500000000
29 Type: IMAGE_REL_AMD64_REL32
31 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
36 - FileName: 'E:\file.cpp'
38 Checksum: D72EDEF8B8E50C364A330F9CB3CD904B
43 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
55 Type: IMAGE_REL_AMD64_SECREL
57 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
66 - FileName: 'E:\file.cpp'
76 Type: IMAGE_REL_AMD64_SECREL
81 SimpleType: IMAGE_SYM_TYPE_NULL
82 ComplexType: IMAGE_SYM_DTYPE_NULL
83 StorageClass: IMAGE_SYM_CLASS_STATIC
86 NumberOfRelocations: 2
87 NumberOfLinenumbers: 0
90 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
94 SimpleType: IMAGE_SYM_TYPE_NULL
95 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
96 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
100 SimpleType: IMAGE_SYM_TYPE_NULL
101 ComplexType: IMAGE_SYM_DTYPE_NULL
102 StorageClass: IMAGE_SYM_CLASS_STATIC
105 NumberOfRelocations: 2
106 NumberOfLinenumbers: 0
109 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
113 SimpleType: IMAGE_SYM_TYPE_NULL
114 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
115 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
119 SimpleType: IMAGE_SYM_TYPE_NULL
120 ComplexType: IMAGE_SYM_DTYPE_NULL
121 StorageClass: IMAGE_SYM_CLASS_STATIC
124 NumberOfRelocations: 0
125 NumberOfLinenumbers: 0
131 SimpleType: IMAGE_SYM_TYPE_NULL
132 ComplexType: IMAGE_SYM_DTYPE_NULL
133 StorageClass: IMAGE_SYM_CLASS_STATIC
136 NumberOfRelocations: 1
137 NumberOfLinenumbers: 0
140 Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE
144 SimpleType: IMAGE_SYM_TYPE_NULL
145 ComplexType: IMAGE_SYM_DTYPE_NULL
146 StorageClass: IMAGE_SYM_CLASS_STATIC
149 NumberOfRelocations: 1
150 NumberOfLinenumbers: 0
153 Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE
157 SimpleType: IMAGE_SYM_TYPE_NULL
158 ComplexType: IMAGE_SYM_DTYPE_NULL
159 StorageClass: IMAGE_SYM_CLASS_EXTERNAL