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
23 .reloc ., R_X86_64_32, .text-1