• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: mkdir -p %t
2# RUN: yaml2obj -o %t/constant-export.obj %s
3# RUN: lld-link /machine:x86 /dll /entry:__CFConstantStringClassReference -out:%t/constant-export.dll %t/constant-export.obj
4# RUN: llvm-readobj --coff-exports %t/constant-export.lib | FileCheck %s
5
6# CHECK: Type: const
7# CHECK: Name type: noprefix
8# CHECK: Symbol: __imp____CFConstantStringClassReference
9
10--- !COFF
11header:
12  Machine:         IMAGE_FILE_MACHINE_I386
13  Characteristics: [  ]
14sections:
15  - Name:            .text
16    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
17    Alignment:       4
18    SectionData:     ''
19  - Name:            .data
20    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
21    Alignment:       4
22    SectionData:     ''
23  - Name:            .bss
24    Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
25    Alignment:       4
26    SectionData:     ''
27  - Name:            .drectve
28    Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
29    Alignment:       1
30    SectionData:     20202D6578706F72743A5F5F5F4346436F6E7374616E74537472696E67436C6173735265666572656E63652C434F4E5354414E54
31symbols:
32  - Name:            .text
33    Value:           0
34    SectionNumber:   1
35    SimpleType:      IMAGE_SYM_TYPE_NULL
36    ComplexType:     IMAGE_SYM_DTYPE_NULL
37    StorageClass:    IMAGE_SYM_CLASS_STATIC
38    SectionDefinition:
39      Length:          0
40      NumberOfRelocations: 0
41      NumberOfLinenumbers: 0
42      CheckSum:        0
43      Number:          1
44  - Name:            .data
45    Value:           0
46    SectionNumber:   2
47    SimpleType:      IMAGE_SYM_TYPE_NULL
48    ComplexType:     IMAGE_SYM_DTYPE_NULL
49    StorageClass:    IMAGE_SYM_CLASS_STATIC
50    SectionDefinition:
51      Length:          0
52      NumberOfRelocations: 0
53      NumberOfLinenumbers: 0
54      CheckSum:        0
55      Number:          2
56  - Name:            .bss
57    Value:           0
58    SectionNumber:   3
59    SimpleType:      IMAGE_SYM_TYPE_NULL
60    ComplexType:     IMAGE_SYM_DTYPE_NULL
61    StorageClass:    IMAGE_SYM_CLASS_STATIC
62    SectionDefinition:
63      Length:          0
64      NumberOfRelocations: 0
65      NumberOfLinenumbers: 0
66      CheckSum:        0
67      Number:          3
68  - Name:            .drectve
69    Value:           0
70    SectionNumber:   4
71    SimpleType:      IMAGE_SYM_TYPE_NULL
72    ComplexType:     IMAGE_SYM_DTYPE_NULL
73    StorageClass:    IMAGE_SYM_CLASS_STATIC
74    SectionDefinition:
75      Length:          52
76      NumberOfRelocations: 0
77      NumberOfLinenumbers: 0
78      CheckSum:        1983959296
79      Number:          4
80  - Name:            '@feat.00'
81    Value:           1
82    SectionNumber:   -1
83    SimpleType:      IMAGE_SYM_TYPE_NULL
84    ComplexType:     IMAGE_SYM_DTYPE_NULL
85    StorageClass:    IMAGE_SYM_CLASS_STATIC
86  - Name:            ___CFConstantStringClassReference
87    Value:           128
88    SectionNumber:   0
89    SimpleType:      IMAGE_SYM_TYPE_NULL
90    ComplexType:     IMAGE_SYM_DTYPE_NULL
91    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
92...
93