brintos

brintos / llvm-project-archived public Read only

0
0
Text · 615 B · 0908462 Raw
23 lines · plain
1# REQUIRES: x862 3## In this test R_X86_64_GOTTPOFF is a IE relocation (static TLS model),4## test check we add STATIC_TLS flag for -shared.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o7# RUN: ld.lld %t.o -o %t.so -shared8# RUN: llvm-readobj --dynamic-table %t.so | FileCheck %s9# RUN: ld.lld %t.o -o %t -pie10# RUN: llvm-readobj --dynamic-table %t | FileCheck %s --check-prefix=EXE11 12# CHECK: DynamicSection [13# CHECK: FLAGS STATIC_TLS14 15# EXE-NOT: FLAGS STATIC_TLS16 17.section ".tdata", "awT", @progbits18.globl var19var:20 21movq var@GOTTPOFF(%rip), %rax # R_X86_64_GOTTPOFF22movl %fs:0(%rax), %eax23