]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/x86-64-reloc-tpoff32-fpic.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / x86-64-reloc-tpoff32-fpic.s
1 # REQUIRES: x86
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
4
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)
8
9 .section ".tdata", "awT", @progbits
10 .globl var
11 var:
12
13 movq %fs:0, %rax
14 leaq var@TPOFF(%rax),%rax