3 # RUN: yaml2obj %s -o %t.obj
5 # RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 /export:exportdata,data
6 # RUN: llvm-objdump -p %t.dll | FileCheck %s
9 # CHECK: DLL name: export-armnt.yaml.tmp.dll
10 # CHECK: Ordinal RVA Name
11 # CHECK-NEXT: 1 0x3000 exportdata
12 # CHECK-NEXT: 2 0x1005 exportfn1
13 # CHECK-NEXT: 3 0x1009 exportfn2
14 # CHECK-NEXT: 4 0x1009 exportfn3
18 Machine: IMAGE_FILE_MACHINE_ARMNT
22 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
24 SectionData: 704700bf704700bf704700bf
26 Characteristics: [ IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
30 Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
32 SectionData: 2f6578706f72743a6578706f7274666e3300 # /export:exportfn3
37 SimpleType: IMAGE_SYM_TYPE_NULL
38 ComplexType: IMAGE_SYM_DTYPE_NULL
39 StorageClass: IMAGE_SYM_CLASS_STATIC
42 NumberOfRelocations: 0
43 NumberOfLinenumbers: 0
49 SimpleType: IMAGE_SYM_TYPE_NULL
50 ComplexType: IMAGE_SYM_DTYPE_NULL
51 StorageClass: IMAGE_SYM_CLASS_STATIC
54 NumberOfRelocations: 0
55 NumberOfLinenumbers: 0
58 - Name: _DllMainCRTStartup
61 SimpleType: IMAGE_SYM_TYPE_NULL
62 ComplexType: IMAGE_SYM_DTYPE_NULL
63 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
67 SimpleType: IMAGE_SYM_TYPE_NULL
68 ComplexType: IMAGE_SYM_DTYPE_NULL
69 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
73 SimpleType: IMAGE_SYM_TYPE_NULL
74 ComplexType: IMAGE_SYM_DTYPE_NULL
75 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
79 SimpleType: IMAGE_SYM_TYPE_NULL
80 ComplexType: IMAGE_SYM_DTYPE_NULL
81 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
85 SimpleType: IMAGE_SYM_TYPE_NULL
86 ComplexType: IMAGE_SYM_DTYPE_NULL
87 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
88 - Name: '?mangled@@YAHXZ'
91 SimpleType: IMAGE_SYM_TYPE_NULL
92 ComplexType: IMAGE_SYM_DTYPE_NULL
93 StorageClass: IMAGE_SYM_CLASS_EXTERNAL