[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / x86-64-tls-ld-local.s
blob53b3120ea49c9330eaad9cca4a893110154f4574
1 // REQUIRES: x86
2 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
3 // RUN: ld.lld %t.o -o %t.so -shared
4 // RUN: llvm-readobj -r -S --hex-dump=.debug_info %t.so | FileCheck %s
6 // CHECK: Relocations [
7 // CHECK-NEXT: Section ({{.*}}) .rela.dyn {
8 // CHECK-NEXT: R_X86_64_DTPMOD64 - 0x0
9 // CHECK-NEXT: R_X86_64_DTPMOD64 - 0x0
10 // CHECK-NEXT: }
11 // CHECK-NEXT: Section ({{.*}}) .rela.plt {
12 // CHECK-NEXT: R_X86_64_JUMP_SLOT __tls_get_addr 0x0
13 // CHECK-NEXT: }
14 // CHECK-NEXT: ]
16 // CHECK: Hex dump of section '.debug_info':
17 // CHECK-NEXT: 0x00000000 04000000 00000000 00000000 00000000
19 data16
20 leaq bar@TLSGD(%rip), %rdi
21 data16
22 data16
23 rex64
24 callq __tls_get_addr@PLT
26 leaq bar@TLSLD(%rip), %rdi
27 callq __tls_get_addr@PLT
28 leaq bar@DTPOFF(%rax), %rax
30 .section .tdata,"awT",@progbits
31 bar:
32 .long 42
33 foo:
34 .long 43
36 .section .debug_info,"",@progbits
37 .quad foo@DTPOFF
38 .quad bar@DTPOFF