1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.exe /subsystem:console /entry:main %t.obj
3 # RUN: llvm-objdump -s %t.exe | FileCheck %s
5 # CHECK: Contents of section .rdata:
6 # CHECK: 1000 00200000 02200000
10 Machine: IMAGE_FILE_MACHINE_I386
14 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
16 SectionData: 0000000000000000
18 Characteristics: [ IMAGE_SCN_LNK_INFO ]
20 SectionData: 0600000007000000
25 SimpleType: IMAGE_SYM_TYPE_NULL
26 ComplexType: IMAGE_SYM_DTYPE_NULL
27 StorageClass: IMAGE_SYM_CLASS_STATIC
31 SimpleType: IMAGE_SYM_TYPE_NULL
32 ComplexType: IMAGE_SYM_DTYPE_NULL
33 StorageClass: IMAGE_SYM_CLASS_STATIC
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
61 SimpleType: IMAGE_SYM_TYPE_NULL
62 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
63 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
67 SimpleType: IMAGE_SYM_TYPE_NULL
68 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
69 StorageClass: IMAGE_SYM_CLASS_EXTERNAL