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