57 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: not lld-link /include:symbol /dll /noentry /nodefaultlib %t.obj /out:%t.exe 2>&1 | FileCheck %s3 4# Tests an associative comdat being associated with an empty section errors.5# CHECK: lld-link: error: {{.*}}: associative comdat .text$ac1 (sec 1) has invalid reference to section .text$nm (sec 2)6# CHECK-NOT: lld-link: error:7 8--- !COFF9header: 10 Machine: IMAGE_FILE_MACHINE_AMD6411 Characteristics: [ ]12sections: 13 - Name: '.text$ac1'14 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]15 Alignment: 116 SectionData: '01000000'17 - Name: '.text$nm'18 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]19 Alignment: 120 SectionData: '01000000'21symbols: 22 - Name: '.text$ac1'23 Value: 024 SectionNumber: 125 SimpleType: IMAGE_SYM_TYPE_NULL26 ComplexType: IMAGE_SYM_DTYPE_NULL27 StorageClass: IMAGE_SYM_CLASS_STATIC28 SectionDefinition: 29 Length: 430 NumberOfRelocations: 031 NumberOfLinenumbers: 032 CheckSum: 309935498133 Number: 234 Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE35 - Name: '.text$nm'36 Value: 037 SectionNumber: 238 SimpleType: IMAGE_SYM_TYPE_NULL39 ComplexType: IMAGE_SYM_DTYPE_NULL40 StorageClass: IMAGE_SYM_CLASS_STATIC41 SectionDefinition: 42 Length: 043 NumberOfRelocations: 044 NumberOfLinenumbers: 045 CheckSum: 309935498146 Number: 447 Selection: IMAGE_COMDAT_SELECT_ANY48 - Name: assocsym49 Value: 050 SectionNumber: 151 SimpleType: IMAGE_SYM_TYPE_NULL52 ComplexType: IMAGE_SYM_DTYPE_NULL53 StorageClass: IMAGE_SYM_CLASS_STATIC54...55 56 57