[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / broken-arm-reloc.yaml
blob00a7c2d5841e27f057aad668bb1e3cf301f54b1a
1 # REQUIRES: arm
3 #    .global main
4 #    .global variable
5 #    .text
6 #    .thumb
7 #main:
8 #    movw r0, :lower16:variable
9 #    nop
10 #    movt r0, :upper16:variable
11 #    ldr  r0, [r0]
12 #    bx   lr
13 #    .data
14 #variable:
15 #    .long 42
17 # RUN: yaml2obj %s -o %t.obj
18 # RUN: not lld-link -out:%t.exe -entry:main %t.obj 2>&1 | FileCheck %s
20 # CHECK: error: unexpected instruction in MOVT instruction in MOV32T relocation
22 --- !COFF
23 header:
24   Machine:         IMAGE_FILE_MACHINE_ARMNT
25   Characteristics: [  ]
26 sections:
27   - Name:            .text
28     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
29     Alignment:       4
30     SectionData:     40F2000000BFC0F2000000687047
31     Relocations:
32       - VirtualAddress:  0
33         SymbolName:      variable
34         Type:            IMAGE_REL_ARM_MOV32T
35   - Name:            .data
36     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
37     Alignment:       4
38     SectionData:     2A000000
39   - Name:            .bss
40     Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
41     Alignment:       4
42     SectionData:     ''
43 symbols:
44   - Name:            .text
45     Value:           0
46     SectionNumber:   1
47     SimpleType:      IMAGE_SYM_TYPE_NULL
48     ComplexType:     IMAGE_SYM_DTYPE_NULL
49     StorageClass:    IMAGE_SYM_CLASS_STATIC
50     SectionDefinition:
51       Length:          14
52       NumberOfRelocations: 1
53       NumberOfLinenumbers: 0
54       CheckSum:        2762100735
55       Number:          1
56   - Name:            .data
57     Value:           0
58     SectionNumber:   2
59     SimpleType:      IMAGE_SYM_TYPE_NULL
60     ComplexType:     IMAGE_SYM_DTYPE_NULL
61     StorageClass:    IMAGE_SYM_CLASS_STATIC
62     SectionDefinition:
63       Length:          4
64       NumberOfRelocations: 0
65       NumberOfLinenumbers: 0
66       CheckSum:        3482275674
67       Number:          2
68   - Name:            .bss
69     Value:           0
70     SectionNumber:   3
71     SimpleType:      IMAGE_SYM_TYPE_NULL
72     ComplexType:     IMAGE_SYM_DTYPE_NULL
73     StorageClass:    IMAGE_SYM_CLASS_STATIC
74     SectionDefinition:
75       Length:          0
76       NumberOfRelocations: 0
77       NumberOfLinenumbers: 0
78       CheckSum:        0
79       Number:          3
80   - Name:            main
81     Value:           0
82     SectionNumber:   1
83     SimpleType:      IMAGE_SYM_TYPE_NULL
84     ComplexType:     IMAGE_SYM_DTYPE_NULL
85     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
86   - Name:            variable
87     Value:           0
88     SectionNumber:   2
89     SimpleType:      IMAGE_SYM_TYPE_NULL
90     ComplexType:     IMAGE_SYM_DTYPE_NULL
91     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
92 ...