aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/tls-static.s
blob: b098b68b03f17baddafba6ed926af1c51086b953 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/shared.s -o %tso
// RUN: ld.lld -static %t -o %tout
// RUN: ld.lld %t -o %tout
// RUN: ld.lld -shared %tso -o %tshared
// RUN: not ld.lld -static %t %tshared -o %tout 2>&1 | FileCheck %s
// REQUIRES: x86

.global _start
_start:
  call __tls_get_addr

// CHECK: error: {{.*}}:(.text+0x1): undefined symbol '__tls_get_addr'