1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3# RUN: not %lld -o /dev/null %t.o 2>&1 | FileCheck %s
4
5# CHECK: error: relocations in thread-local variable sections must be X86_64_RELOC_UNSIGNED
6
7.text
8.globl _main
9_main:
10  ret
11
12.section	__DATA,__thread_vars,thread_local_variables
13.globl	_foo, _bar
14_foo:
15  movq _bar@GOTPCREL(%rip), %rax
16