2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: not ld.lld %t.o -shared -o /dev/null 2>&1 | FileCheck %s
5 # CHECK: relocation R_X86_64_TPOFF32 cannot be used against symbol var; recompile with -fPIC
6 # CHECK: >>> defined in {{.*}}.o
7 # CHECK: >>> referenced by {{.*}}.o:(.tdata+0xC)
9 .section ".tdata", "awT", @progbits
14 leaq var@TPOFF(%rax),%rax