You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
369 B

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: not %lld -o /dev/null %t.o 2>&1 | FileCheck %s -DFILE=%t.o
# CHECK: error: found GOT relocation referencing thread-local variable in [[FILE]]:(__text)
.text
.globl _main
_main:
movq _foo@GOTPCREL(%rip), %rax
ret
.section __DATA,__thread_vars,thread_local_variables
_foo: