[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / x86-64-reloc-32.s
blobbf2fc26a5820486019e5fed664bc1fb0141566c0
1 # REQUIRES: x86
2 # RUN: rm -rf %t && split-file %s %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t/shared.s -o %t/shared.o
5 # CHECK: error: relocation R_X86_64_32 cannot be used against symbol '_shared'; recompile with -fPIC
6 # CHECK: >>> defined in {{.*}}
7 # CHECK: >>> referenced by {{.*}}:(.data+0x0)
9 ## Check patching of negative addends
10 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/addend.s -o %t/addend.o
11 # RUN: not ld.lld --section-start=.text=0x0 %t/addend.o -o /dev/null 2>&1 | FileCheck %s --check-prefix RANGE
13 # RANGE: relocation R_X86_64_32 out of range
15 #--- shared.s
16 .data
17 .long _shared
19 #--- addend.s
20 .text
21 .globl _start
22 _start:
23 .reloc ., R_X86_64_32, .text-1
24 .space 4