aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-10 17:15:19 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-05-10 17:15:19 +0000
commit1da80baa66a91a51d46a48476dbc14b26eaf8f78 (patch)
tree496bae66059e226ed21095f975e66963d9180274 /bfd/elf64-x86-64.c
parent64ea88dcd7fe63b28761aed765bce1cf0cd5f709 (diff)
downloadgdb-1da80baa66a91a51d46a48476dbc14b26eaf8f78.zip
gdb-1da80baa66a91a51d46a48476dbc14b26eaf8f78.tar.gz
gdb-1da80baa66a91a51d46a48476dbc14b26eaf8f78.tar.bz2
Count R_X86_64_RELATIVE64 as reloc_class_relative
bfd/ * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle R_X86_64_RELATIVE64. ld/testsuite/ * ld-x86-64/pr13082-1a.d: Check RELACOUNT. * ld-x86-64/pr13082-1b.d: Likewise.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 8eafbf0..a9429b8 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -4524,6 +4524,7 @@ elf_x86_64_reloc_type_class (const Elf_Internal_Rela *rela)
switch ((int) ELF32_R_TYPE (rela->r_info))
{
case R_X86_64_RELATIVE:
+ case R_X86_64_RELATIVE64:
return reloc_class_relative;
case R_X86_64_JUMP_SLOT:
return reloc_class_plt;