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
|
2017-04-01 07:40:21 +08:00
|
|
|
|
|
|
|
// CHECK: TLS attribute mismatch: tlsvar
|
|
|
|
// CHECK: >>> defined in
|
|
|
|
// CHECK: >>> defined in
|
2015-10-09 17:58:39 +08:00
|
|
|
|
|
|
|
.globl _start,tlsvar
|
|
|
|
_start:
|
|
|
|
movl tlsvar,%edx
|