]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/tls-in-archive.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / tls-in-archive.s
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-in-archive.s -o %t1.o
3 // RUN: llvm-ar cru %t.a %t1.o
4 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
5 // RUN: ld.lld %t2.o %t.a -o /dev/null
6
7         .globl  _start
8 _start:
9         movq    foo@gottpoff(%rip), %rax
10         .section        .tbss,"awT",@nobits
11         .weak   foo