From a69ed7f7aa6fb202509361b02d43838270cc65a0 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 28 Jun 2013 15:07:55 +0000 Subject: Handle R_X86_64_DTPOFF64 bfd/ PR ld/15685 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle R_X86_64_DTPOFF64. ld/testsuite/ PR ld/15685 * ld-x86-64/tlsg.s: Add a test for R_X86_64_DTPOFF64. * ld-x86-64/tlsg.sd: Updated. --- bfd/ChangeLog | 6 ++++++ bfd/elf64-x86-64.c | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49a6fe6..a592817 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2013-06-28 H.J. Lu + + PR ld/15685 + * elf64-x86-64.c (elf_x86_64_relocate_section): Handle + R_X86_64_DTPOFF64. + 2013-06-28 Nick Clifton PR ld/15302 diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 758231e..56a1f81 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -4332,6 +4332,11 @@ direct: relocation = elf_x86_64_tpoff (info, relocation); break; + case R_X86_64_DTPOFF64: + BFD_ASSERT ((input_section->flags & SEC_CODE) == 0); + relocation -= elf_x86_64_dtpoff_base (info); + break; + default: break; } -- cgit v1.1