summaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-10 17:15:12 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-05-10 17:15:12 +0000
commit03f196a2663f1c27c5e047cd9b45b3358dc3157a (patch)
tree5bfb3c0c9f99e9601eabda228e5d13315eb22c46 /bfd/elf64-x86-64.c
parent53a32f59b0d50850db4a522364e08d61828ab981 (diff)
downloadbinutils-redhat-03f196a2663f1c27c5e047cd9b45b3358dc3157a.tar.gz
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 8eafbf084c..a9429b8c6c 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;