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 10 20 00 40
12 Machine: IMAGE_FILE_MACHINE_AMD64
16 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18 SectionData: b800000000b800000000
22 Type: IMAGE_REL_AMD64_ADDR32
24 SymbolName: bssdata4_align16
25 Type: IMAGE_REL_AMD64_ADDR32
27 Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
29 SectionData: 202d616c69676e636f6d6d3a62737364617461345f616c69676e31362c340a # -aligncomm:bssdata4_align16,4
35 SimpleType: IMAGE_SYM_TYPE_NULL
36 ComplexType: IMAGE_SYM_DTYPE_NULL
37 StorageClass: IMAGE_SYM_CLASS_STATIC
40 NumberOfRelocations: 5
41 NumberOfLinenumbers: 0
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
49 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
53 SimpleType: IMAGE_SYM_TYPE_NULL
54 ComplexType: IMAGE_SYM_DTYPE_NULL
55 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
56 - Name: bssdata4_align16
59 SimpleType: IMAGE_SYM_TYPE_NULL
60 ComplexType: IMAGE_SYM_DTYPE_NULL
61 StorageClass: IMAGE_SYM_CLASS_EXTERNAL