1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o 3# RUN: ld.lld %t.o -shared -o %t.so 4# RUN: llvm-objdump -d --no-show-raw-insn %t.so | FileCheck %s 5 6# CHECK: 11ef: movl (%eax), %eax 7 8# We used to error on R_386_TLS_LDO_32 to preemptable symbols. 9# i is STB_GLOBAL and preemptable. 10 leal i@TLSLDM(%ebx), %eax 11 calll __tls_get_addr@PLT 12 movl i@DTPOFF(%eax), %eax # R_386_TLS_LDO_32 13 14.section .tbss,"awT",@nobits 15.globl i 16i: 17 .long 0 18 .size i, 4 19