2015-10-06 08:45:42 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
|
2015-10-07 04:39:09 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/shared.s -o %tso
|
2015-11-18 14:11:01 +08:00
|
|
|
// 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
|
2015-10-06 08:45:42 +08:00
|
|
|
// REQUIRES: x86
|
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
call __tls_get_addr
|
2015-10-13 07:44:22 +08:00
|
|
|
|
|
|
|
// CHECK: undefined symbol: __tls_get_addr
|