95 lines · yaml
1# REQUIRES: arm2 3# RUN: yaml2obj %s -o %t.obj4#5# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 /export:exportdata,data6# RUN: llvm-objdump -p %t.dll | FileCheck %s7 8# CHECK: Export Table:9# CHECK: DLL name: export-armnt.yaml.tmp.dll10# CHECK: Ordinal RVA Name11# CHECK-NEXT: 1 0x3000 exportdata12# CHECK-NEXT: 2 0x1005 exportfn113# CHECK-NEXT: 3 0x1009 exportfn214# CHECK-NEXT: 4 0x1009 exportfn315 16--- !COFF17header:18 Machine: IMAGE_FILE_MACHINE_ARMNT19 Characteristics: []20sections:21 - Name: .text22 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]23 Alignment: 424 SectionData: 704700bf704700bf704700bf25 - Name: .data26 Characteristics: [ IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]27 Alignment: 428 SectionData: 0000000029 - Name: .drectve30 Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]31 Alignment: 132 SectionData: 2f6578706f72743a6578706f7274666e3300 # /export:exportfn333symbols:34 - Name: .text35 Value: 036 SectionNumber: 137 SimpleType: IMAGE_SYM_TYPE_NULL38 ComplexType: IMAGE_SYM_DTYPE_NULL39 StorageClass: IMAGE_SYM_CLASS_STATIC40 SectionDefinition:41 Length: 1242 NumberOfRelocations: 043 NumberOfLinenumbers: 044 CheckSum: 045 Number: 046 - Name: .data47 Value: 048 SectionNumber: 249 SimpleType: IMAGE_SYM_TYPE_NULL50 ComplexType: IMAGE_SYM_DTYPE_NULL51 StorageClass: IMAGE_SYM_CLASS_STATIC52 SectionDefinition:53 Length: 454 NumberOfRelocations: 055 NumberOfLinenumbers: 056 CheckSum: 057 Number: 058 - Name: _DllMainCRTStartup59 Value: 060 SectionNumber: 161 SimpleType: IMAGE_SYM_TYPE_NULL62 ComplexType: IMAGE_SYM_DTYPE_NULL63 StorageClass: IMAGE_SYM_CLASS_EXTERNAL64 - Name: exportfn165 Value: 466 SectionNumber: 167 SimpleType: IMAGE_SYM_TYPE_NULL68 ComplexType: IMAGE_SYM_DTYPE_NULL69 StorageClass: IMAGE_SYM_CLASS_EXTERNAL70 - Name: exportfn271 Value: 872 SectionNumber: 173 SimpleType: IMAGE_SYM_TYPE_NULL74 ComplexType: IMAGE_SYM_DTYPE_NULL75 StorageClass: IMAGE_SYM_CLASS_EXTERNAL76 - Name: exportfn377 Value: 878 SectionNumber: 179 SimpleType: IMAGE_SYM_TYPE_NULL80 ComplexType: IMAGE_SYM_DTYPE_NULL81 StorageClass: IMAGE_SYM_CLASS_EXTERNAL82 - Name: exportdata83 Value: 084 SectionNumber: 285 SimpleType: IMAGE_SYM_TYPE_NULL86 ComplexType: IMAGE_SYM_DTYPE_NULL87 StorageClass: IMAGE_SYM_CLASS_EXTERNAL88 - Name: '?mangled@@YAHXZ'89 Value: 890 SectionNumber: 191 SimpleType: IMAGE_SYM_TYPE_NULL92 ComplexType: IMAGE_SYM_DTYPE_NULL93 StorageClass: IMAGE_SYM_CLASS_EXTERNAL94...95