2 # Check handling TLS related relocations and symbols when linking
3 # a 64-bit static executable.
5 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t
6 # RUN: ld.lld -static %t -o %t.exe
7 # RUN: llvm-objdump -s -t %t.exe | FileCheck %s
10 # CHECK: [[TGA:[0-9a-f]{8}]] g .text 0000000000000000 __tls_get_addr
11 # CHECK: 0000000000000000 g .tdata 0000000000000000 tls1
13 # CHECK: Contents of section .data:
14 # CHECK-NEXT: {{.*}} [[TGA]] ffffffff ffff8004 ffffffff
15 # CHECK-NEXT: {{.*}} ffff9004
22 .global __tls_get_addr
29 .dtpreldword tls1+4 # R_MIPS_TLS_DTPREL64
30 .tpreldword tls1+4 # R_MIPS_TLS_TPREL64
32 .section .tdata,"awT",%progbits