1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o 3# RUN: ld.lld --noinhibit-exec %t.o -o %t 2>&1 4# RUN: llvm-objdump -d %t | FileCheck %s 5 6## Undefined TLS symbols resolve to 0. 7## In --noinhibit-exec mode, a non-weak undefined symbol is not an error. 8 9# CHECK: subl $0, %eax 10# CHECK: subl $0, %eax 11 12.weak weak_undef 13movl %gs:0, %eax 14subl $weak_undef@tpoff,%eax 15movl %gs:0, %eax 16subl $undef@tpoff,%eax 17