2015-10-09 17:58:39 +08:00
|
|
|
// 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
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: not ld.lld %t %t2 -o %t3 2>&1 | FileCheck %s
|
2016-11-09 00:26:32 +08:00
|
|
|
// CHECK: TLS attribute mismatch for symbol 'tlsvar'
|
2015-10-09 17:58:39 +08:00
|
|
|
|
|
|
|
.globl _start,tlsvar
|
|
|
|
_start:
|
|
|
|
movl tlsvar,%edx
|