Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / bad-tlv-def.s
blob316d2647de90b2b6a8131dc02ca4a21b8dcc4319
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
5 # CHECK: error: GOT_LOAD relocation not allowed in thread-local section, must be UNSIGNED
7 .text
8 .globl _main
9 _main:
10 ret
12 .section __DATA,__thread_vars,thread_local_variables
13 .globl _foo, _bar
14 _foo:
15 movq _bar@GOTPCREL(%rip), %rax