summaryrefslogtreecommitdiff
path: root/test/ELF/tls-mismatch.s
blob: fb70229e1a52c6cb204cb42839c6df42740aeb35 (plain) (blame)
1
2
3
4
5
6
7
8
9
// 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: not ld.lld %t %t2 -o %t3 2>&1 | FileCheck %s
// CHECK: TLS attribute mismatch for symbol: tlsvar

.globl _start,tlsvar
_start:
  movl tlsvar,%edx