llvm-project
94 строки · 3.0 Кб
1# REQUIRES: arm
2
3# RUN: yaml2obj %s -o %t.obj
4#
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
7
8# CHECK: Export Table:
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
15
16--- !COFF
17header:
18Machine: IMAGE_FILE_MACHINE_ARMNT
19Characteristics: []
20sections:
21- Name: .text
22Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
23Alignment: 4
24SectionData: 704700bf704700bf704700bf
25- Name: .data
26Characteristics: [ IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
27Alignment: 4
28SectionData: 00000000
29- Name: .drectve
30Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
31Alignment: 1
32SectionData: 2f6578706f72743a6578706f7274666e3300 # /export:exportfn3
33symbols:
34- Name: .text
35Value: 0
36SectionNumber: 1
37SimpleType: IMAGE_SYM_TYPE_NULL
38ComplexType: IMAGE_SYM_DTYPE_NULL
39StorageClass: IMAGE_SYM_CLASS_STATIC
40SectionDefinition:
41Length: 12
42NumberOfRelocations: 0
43NumberOfLinenumbers: 0
44CheckSum: 0
45Number: 0
46- Name: .data
47Value: 0
48SectionNumber: 2
49SimpleType: IMAGE_SYM_TYPE_NULL
50ComplexType: IMAGE_SYM_DTYPE_NULL
51StorageClass: IMAGE_SYM_CLASS_STATIC
52SectionDefinition:
53Length: 4
54NumberOfRelocations: 0
55NumberOfLinenumbers: 0
56CheckSum: 0
57Number: 0
58- Name: _DllMainCRTStartup
59Value: 0
60SectionNumber: 1
61SimpleType: IMAGE_SYM_TYPE_NULL
62ComplexType: IMAGE_SYM_DTYPE_NULL
63StorageClass: IMAGE_SYM_CLASS_EXTERNAL
64- Name: exportfn1
65Value: 4
66SectionNumber: 1
67SimpleType: IMAGE_SYM_TYPE_NULL
68ComplexType: IMAGE_SYM_DTYPE_NULL
69StorageClass: IMAGE_SYM_CLASS_EXTERNAL
70- Name: exportfn2
71Value: 8
72SectionNumber: 1
73SimpleType: IMAGE_SYM_TYPE_NULL
74ComplexType: IMAGE_SYM_DTYPE_NULL
75StorageClass: IMAGE_SYM_CLASS_EXTERNAL
76- Name: exportfn3
77Value: 8
78SectionNumber: 1
79SimpleType: IMAGE_SYM_TYPE_NULL
80ComplexType: IMAGE_SYM_DTYPE_NULL
81StorageClass: IMAGE_SYM_CLASS_EXTERNAL
82- Name: exportdata
83Value: 0
84SectionNumber: 2
85SimpleType: IMAGE_SYM_TYPE_NULL
86ComplexType: IMAGE_SYM_DTYPE_NULL
87StorageClass: IMAGE_SYM_CLASS_EXTERNAL
88- Name: '?mangled@@YAHXZ'
89Value: 8
90SectionNumber: 1
91SimpleType: IMAGE_SYM_TYPE_NULL
92ComplexType: IMAGE_SYM_DTYPE_NULL
93StorageClass: IMAGE_SYM_CLASS_EXTERNAL
94...
95