brintos

brintos / llvm-project-archived public Read only

0
0
Text · 630 B · 7727db3 Raw
28 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3# RUN: ld.lld -shared %t.o -o %t.so4# RUN: llvm-readobj -r %t.so | FileCheck %s --check-prefix=RELA5 6## Both TLSDESC and DTPMOD64/DTPOFF64 should be present.7# RELA:      .rela.dyn {8# RELA-NEXT:   0x[[#%X,ADDR:]] R_X86_64_TLSDESC  a 0x09# RELA-NEXT:   0x[[#ADDR+16]]  R_X86_64_DTPMOD64 a 0x010# RELA-NEXT:   0x[[#ADDR+24]]  R_X86_64_DTPOFF64 a 0x011# RELA-NEXT: }12 13leaq a@tlsdesc(%rip), %rax14call *a@tlscall(%rax)15movl %fs:(%rax), %eax16 17.byte 0x6618leaq a@tlsgd(%rip), %rdi19.word 0x666620rex6421call __tls_get_addr@PLT22 23.section .tbss24.globl a25.zero 826a:27.zero 428