3 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t.o
4 // RUN
: ld.lld
-shared
--pack-dyn-relocs
=android
%t.o
-o
%t.so
5 // RUN
: llvm-readobj
-r
%t.so | FileCheck
%s
7 // Bug
37841: Symbol
::getVA must work on TLS symbols during the layout loop in
8 // finalizeSections. This test uses an atypical IE access in
a shared object to
9 // access
a local TLS symbol
, because
a more typical access would avoid the
14 movq tlsvar@GOTTPOFF
(%rip
), %rcx
16 .section .tdata,"awT",@progbits
21 // CHECK
: Section
({{.+}}) .rela.dyn {
22 // CHECK-NEXT
: R_X86_64_TPOFF64
- 0x1234