31 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3// RUN: ld.lld --hash-style=sysv %t -o %tout -shared4// RUN: llvm-readobj -r %tout | FileCheck %s5 6 data167 leaq g_tls_s@TLSGD(%rip), %rdi8 data169 data1610 rex6411 callq __tls_get_addr@PLT12 13 data1614 leaq g_tls_s@TLSGD(%rip), %rdi15 data1616 data1617 rex6418 callq __tls_get_addr@PLT19 20// Check that we handle two gd relocations to the same symbol.21 22// CHECK: Relocations [23// CHECK-NEXT: Section (4) .rela.dyn {24// CHECK-NEXT: R_X86_64_DTPMOD64 g_tls_s 0x025// CHECK-NEXT: R_X86_64_DTPOFF64 g_tls_s 0x026// CHECK-NEXT: }27// CHECK-NEXT: Section (5) .rela.plt {28// CHECK-NEXT: R_X86_64_JUMP_SLOT __tls_get_addr 0x029// CHECK-NEXT: }30// CHECK-NEXT: ]31