2 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj
4 # RUN: llvm-objdump -d %t.exe | FileCheck %s
6 # Operands of B8 (MOV EAX) are common symbols
7 # CHECK: 1000: b8 00 20 00 40
8 # CHECK: 1005: b8 04 20 00 40
9 # CHECK: 100a: b8 20 20 00 40
10 # CHECK: 100f: b8 60 20 00 40
11 # CHECK: 1014: b8 70 20 00 40
15 Machine: IMAGE_FILE_MACHINE_AMD64
19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
21 SectionData: b800000000b800000000b800000000b800000000b800000000
25 Type: IMAGE_REL_AMD64_ADDR32
28 Type: IMAGE_REL_AMD64_ADDR32
31 Type: IMAGE_REL_AMD64_ADDR32
34 Type: IMAGE_REL_AMD64_ADDR32
37 Type: IMAGE_REL_AMD64_ADDR32
42 SimpleType: IMAGE_SYM_TYPE_NULL
43 ComplexType: IMAGE_SYM_DTYPE_NULL
44 StorageClass: IMAGE_SYM_CLASS_STATIC
47 NumberOfRelocations: 5
48 NumberOfLinenumbers: 0
54 SimpleType: IMAGE_SYM_TYPE_NULL
55 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
56 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
60 SimpleType: IMAGE_SYM_TYPE_NULL
61 ComplexType: IMAGE_SYM_DTYPE_NULL
62 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
66 SimpleType: IMAGE_SYM_TYPE_NULL
67 ComplexType: IMAGE_SYM_DTYPE_NULL
68 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
72 SimpleType: IMAGE_SYM_TYPE_NULL
73 ComplexType: IMAGE_SYM_DTYPE_NULL
74 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
78 SimpleType: IMAGE_SYM_TYPE_NULL
79 ComplexType: IMAGE_SYM_DTYPE_NULL
80 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
84 SimpleType: IMAGE_SYM_TYPE_NULL
85 ComplexType: IMAGE_SYM_DTYPE_NULL
86 StorageClass: IMAGE_SYM_CLASS_EXTERNAL