brintos

brintos / llvm-project-archived public Read only

0
0
Text · 703 B · 463a044 Raw
24 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t; split-file %s %t3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/libtlv.s -o %t/libtlv.o5# RUN: %lld -dylib -install_name @executable_path/libtlv.dylib \6# RUN:   -lSystem -o %t/libtlv.dylib %t/libtlv.o7 8# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o9# RUN: not %lld -lSystem -L%t -ltlv -o /dev/null %t/test.o 2>&1 | FileCheck %s -DFILE=%t/test.o10 11# CHECK: error: [[FILE]]:(symbol _main+0x3): GOT_LOAD relocation requires that symbol _foo not be thread-local12 13#--- libtlv.s14.section __DATA,__thread_vars,thread_local_variables15.globl _foo16_foo:17 18#--- test.s19.text20.globl _main21_main:22  movq _foo@GOTPCREL(%rip), %rax23  ret24