2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link /out:%t.exe /entry:main %t.obj
4 # RUN: llvm-objdump -d %t.exe | FileCheck %s
7 # CHECK: 1000: a1 03 20 00 40 00 00 00 00
8 # CHECK: 1009: a1 03 20 00 40 01 00 00 00
9 # CHECK: 1012: a1 03 20 00 00 00 00 00 00
10 # CHECK: 101b: a1 e3 0f 00 00 00 00 00 00
11 # CHECK: 1024: a1 d9 0f 00 00 00 00 00 00
12 # CHECK: 102d: a1 cf 0f 00 00 00 00 00 00
13 # CHECK: 1036: a1 c5 0f 00 00 00 00 00 00
14 # CHECK: 103f: a1 bb 0f 00 00 00 00 00 00
15 # CHECK: 1048: a1 b1 0f 00 00 00 00 00 00
16 # CHECK: 1051: a1 02 00 00 00 00 00 00 00
17 # CHECK: 105a: a1 03 00 00 00 00 00 00 00
21 Machine: IMAGE_FILE_MACHINE_AMD64
25 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
27 SectionData: A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000A10000000000000000
31 Type: IMAGE_REL_AMD64_ADDR32
34 Type: IMAGE_REL_AMD64_ADDR64
37 Type: IMAGE_REL_AMD64_ADDR32NB
40 Type: IMAGE_REL_AMD64_REL32
43 Type: IMAGE_REL_AMD64_REL32_1
46 Type: IMAGE_REL_AMD64_REL32_2
49 Type: IMAGE_REL_AMD64_REL32_3
52 Type: IMAGE_REL_AMD64_REL32_4
55 Type: IMAGE_REL_AMD64_REL32_5
58 Type: IMAGE_REL_AMD64_SECTION
61 Type: IMAGE_REL_AMD64_SECREL
63 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
65 SectionData: 0000000000000000
70 SimpleType: IMAGE_SYM_TYPE_NULL
71 ComplexType: IMAGE_SYM_DTYPE_NULL
72 StorageClass: IMAGE_SYM_CLASS_STATIC
75 NumberOfRelocations: 0
76 NumberOfLinenumbers: 0
82 SimpleType: IMAGE_SYM_TYPE_NULL
83 ComplexType: IMAGE_SYM_DTYPE_NULL
84 StorageClass: IMAGE_SYM_CLASS_STATIC
87 NumberOfRelocations: 0
88 NumberOfLinenumbers: 0
94 SimpleType: IMAGE_SYM_TYPE_NULL
95 ComplexType: IMAGE_SYM_DTYPE_NULL
96 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
100 SimpleType: IMAGE_SYM_TYPE_NULL
101 ComplexType: IMAGE_SYM_DTYPE_NULL
102 StorageClass: IMAGE_SYM_CLASS_EXTERNAL