llvm-project/lld/test/ELF/x86-64-tls-le-undef.s

13 lines
354 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
# RUN: ld.lld --noinhibit-exec %t.o -o %t 2>&1
# RUN: llvm-objdump -d %t | FileCheck %s
## Undefined TLS symbols resolve to 0.
## In --noinhibit-exec mode, a non-weak undefined symbol is not an error.
# CHECK: leaq 32(%rax), %rdx
movq %fs:0, %rax
leaq global@tpoff+32(%rax), %rdx