62 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \3# RUN: /verbose %t.obj > %t.log 2>&14# RUN: FileCheck %s < %t.log5 6# CHECK-NOT: Removed foo7# CHECK-NOT: Removed bar8 9--- !COFF10header:11 Machine: IMAGE_FILE_MACHINE_AMD6412 Characteristics: []13sections:14 - Name: '.text$mn'15 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ]16 Alignment: 1617 SectionData: 4883EC28E8000000004883C428C318 - Name: '.text$mn'19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ]20 Alignment: 1621 SectionData: 4883EC28E8000000004883C428C322symbols:23 - Name: '.text$mn'24 Value: 025 SectionNumber: 126 SimpleType: IMAGE_SYM_TYPE_NULL27 ComplexType: IMAGE_SYM_DTYPE_NULL28 StorageClass: IMAGE_SYM_CLASS_STATIC29 SectionDefinition:30 Length: 1431 NumberOfRelocations: 032 NumberOfLinenumbers: 033 CheckSum: 168275251334 Number: 035 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES36 - Name: '.text$mn'37 Value: 038 SectionNumber: 239 SimpleType: IMAGE_SYM_TYPE_NULL40 ComplexType: IMAGE_SYM_DTYPE_NULL41 StorageClass: IMAGE_SYM_CLASS_STATIC42 SectionDefinition:43 Length: 1444 NumberOfRelocations: 045 NumberOfLinenumbers: 046 CheckSum: 168275251347 Number: 048 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES49 - Name: foo50 Value: 051 SectionNumber: 152 SimpleType: IMAGE_SYM_TYPE_NULL53 ComplexType: IMAGE_SYM_DTYPE_FUNCTION54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL55 - Name: bar56 Value: 057 SectionNumber: 258 SimpleType: IMAGE_SYM_TYPE_NULL59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL61...62