brintos

brintos / llvm-project-archived public Read only

0
0
Text · 862 B · 090719a Raw
37 lines · plain
1# REQUIRES: mips2# Check handling TLS related relocations and symbols when linking3# a 64-bit static executable.4 5# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t6# RUN: ld.lld -static %t -o %t.exe7# RUN: llvm-objdump -s -t %t.exe | FileCheck %s8 9# CHECK: SYMBOL TABLE:10# CHECK: [[TGA:[0-9a-f]{8}]] g      .text  0000000000000000 __tls_get_addr11# CHECK:    0000000000000000 g      .tdata 0000000000000000 tls112#13# CHECK:      Contents of section .data:14# CHECK-NEXT:  {{.*}} [[TGA]] ffffffff ffff8004 ffffffff15# CHECK-NEXT:  {{.*}} ffff900416 17  .text18  .global __start19__start:20  nop21 22  .global __tls_get_addr23__tls_get_addr:24  nop25 26  .data27loc:28  .word __tls_get_addr29  .dtpreldword tls1+4   # R_MIPS_TLS_DTPREL6430  .tpreldword tls1+4    # R_MIPS_TLS_TPREL6431 32 .section .tdata,"awT",%progbits33 .global tls134tls1:35 .word __tls_get_addr36 .word 037