diff options
Diffstat (limited to 'test/ELF/tls-archive.s')
-rw-r--r-- | test/ELF/tls-archive.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/tls-archive.s b/test/ELF/tls-archive.s new file mode 100644 index 000000000000..9a88fddffd36 --- /dev/null +++ b/test/ELF/tls-archive.s @@ -0,0 +1,10 @@ +// REQUIRES: x86 +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-mismatch.s -o %t2 +// RUN: rm -f %t.a +// RUN: llvm-ar cru %t.a %t2 +// RUN: ld.lld %t.a %t -o %t3 + +.globl _start,tlsvar +_start: + movq tlsvar@GOTTPOFF(%rip),%rdx |