2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-cloudabi %s -o %t1.o
3 # RUN: ld.lld -pie %t1.o -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # Bug 27174: R_X86_64_TPOFF32 and R_X86_64_GOTTPOFF relocations should
7 # be eliminated when building a PIE executable, as the static TLS layout
10 # CHECK: Relocations [
16 movl $
3, i@TPOFF
(%rax
)
19 movq i@GOTTPOFF
(%rip
), %rcx
22 .section .tbss.i,"awT",@nobits