1# REQUIRES: x86
2
3## In this test R_X86_64_GOTTPOFF is a IE relocation (static TLS model),
4## test check we add STATIC_TLS flag.
5
6# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
7# RUN: ld.lld %t.o -o %t1 -shared
8# RUN: llvm-readobj --dynamic-table %t1 | FileCheck %s
9
10# CHECK: DynamicSection [
11# CHECK: FLAGS STATIC_TLS
12
13.section ".tdata", "awT", @progbits
14.globl var
15var:
16
17movq var@GOTTPOFF(%rip), %rax # R_X86_64_GOTTPOFF
18movl %fs:0(%rax), %eax
19