Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / tls-got-entry.s
blobc7b96697ab30bac8ee040ff8b8517b057453a4b1
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/tls-got-entry.s -o %tso.o
4 // RUN: ld.lld -shared %tso.o -o %t.so
5 // RUN: ld.lld %t.o %t.so -o %t1
6 // RUN: llvm-readobj -r %t1 | FileCheck %s
8 // CHECK: Relocations [
9 // CHECK-NEXT: Section ({{.*}}) .rela.dyn {
10 // CHECK-NEXT: R_X86_64_TPOFF64 tlsshared0 0x0
11 // CHECK-NEXT: }
12 // CHECK-NEXT: ]
14 .globl _start
15 _start:
16 .byte 0x66
17 leaq tlsshared0@tlsgd(%rip),%rdi
18 .word 0x6666
19 rex64
20 call __tls_get_addr@plt
21 .byte 0x66
22 leaq tlsshared0@tlsgd(%rip),%rdi
23 .word 0x6666
24 rex64
25 call __tls_get_addr@plt