aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/tls-archive.s
blob: 9a88fddffd36ea232f569e351df2a8535d8c9b7a (plain) (blame)
1
2
3
4
5
6
7
8
9
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