12 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o3// RUN: ld.lld -shared %t1.o -o %t1.so4// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o5// RUN: not ld.lld %t2.o %t1.so -o /dev/null -shared 2>&1 | FileCheck %s6 7// CHECK: error: relocation R_X86_64_64 cannot be used against symbol 'foo'; recompile with -fPIC8// CHECK: >>> defined in {{.*}}.so9// CHECK: >>> referenced by {{.*}}.o:(.text+0x0)10 11.quad foo12