67 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: lld-link /out:%t.exe /opt:noref /entry:main \3# RUN: %t.obj %p/Inputs/imports-mangle.lib4# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s5 6# CHECK: Import {7# CHECK: Symbol: sym4 (0)8# CHECK: Symbol: _sym3 (1)9# CHECK: Symbol: sym1 (2)10# CHECK: Symbol: (2)11# CHECK: }12 13--- !COFF14header:15 Machine: IMAGE_FILE_MACHINE_AMD6416 Characteristics: []17sections:18 - Name: .text19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]20 Alignment: 421 SectionData: 00000000000022symbols:23 - Name: .text24 Value: 025 SectionNumber: 126 SimpleType: IMAGE_SYM_TYPE_NULL27 ComplexType: IMAGE_SYM_DTYPE_NULL28 StorageClass: IMAGE_SYM_CLASS_STATIC29 SectionDefinition:30 Length: 631 NumberOfRelocations: 032 NumberOfLinenumbers: 033 CheckSum: 034 Number: 035 Selection: IMAGE_COMDAT_SELECT_ANY36 - Name: main37 Value: 038 SectionNumber: 139 SimpleType: IMAGE_SYM_TYPE_NULL40 ComplexType: IMAGE_SYM_DTYPE_FUNCTION41 StorageClass: IMAGE_SYM_CLASS_EXTERNAL42 - Name: sym143 Value: 044 SectionNumber: 045 SimpleType: IMAGE_SYM_TYPE_NULL46 ComplexType: IMAGE_SYM_DTYPE_FUNCTION47 StorageClass: IMAGE_SYM_CLASS_EXTERNAL48 - Name: sym249 Value: 050 SectionNumber: 051 SimpleType: IMAGE_SYM_TYPE_NULL52 ComplexType: IMAGE_SYM_DTYPE_FUNCTION53 StorageClass: IMAGE_SYM_CLASS_EXTERNAL54 - Name: __sym355 Value: 056 SectionNumber: 057 SimpleType: IMAGE_SYM_TYPE_NULL58 ComplexType: IMAGE_SYM_DTYPE_FUNCTION59 StorageClass: IMAGE_SYM_CLASS_EXTERNAL60 - Name: '?sym4@@YAHH@Z'61 Value: 062 SectionNumber: 063 SimpleType: IMAGE_SYM_TYPE_NULL64 ComplexType: IMAGE_SYM_DTYPE_FUNCTION65 StorageClass: IMAGE_SYM_CLASS_EXTERNAL66...67