[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / common-alignment.test
blobab36d50c53facd343a7984b806acaca01246d62d
1 # REQUIRES: x86
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
10 --- !COFF
11 header:
12   Machine:         IMAGE_FILE_MACHINE_AMD64
13   Characteristics: []
14 sections:
15   - Name:            .text
16     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
17     Alignment:       4
18     SectionData:     b800000000b800000000
19     Relocations:
20       - VirtualAddress:  1
21         SymbolName:      bssdata4
22         Type:            IMAGE_REL_AMD64_ADDR32
23       - VirtualAddress:  6
24         SymbolName:      bssdata4_align16
25         Type:            IMAGE_REL_AMD64_ADDR32
26   - Name:            .drectve
27     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
28     Alignment:       1
29     SectionData:     202d616c69676e636f6d6d3a62737364617461345f616c69676e31362c340a  # -aligncomm:bssdata4_align16,4
31 symbols:
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: 5
41       NumberOfLinenumbers: 0
42       CheckSum:        0
43       Number:          0
44   - Name:            main
45     Value:           0
46     SectionNumber:   1
47     SimpleType:      IMAGE_SYM_TYPE_NULL
48     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
49     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
50   - Name:            bssdata4
51     Value:           4
52     SectionNumber:   0
53     SimpleType:      IMAGE_SYM_TYPE_NULL
54     ComplexType:     IMAGE_SYM_DTYPE_NULL
55     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
56   - Name:            bssdata4_align16
57     Value:           4
58     SectionNumber:   0
59     SimpleType:      IMAGE_SYM_TYPE_NULL
60     ComplexType:     IMAGE_SYM_DTYPE_NULL
61     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
62 ...