aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-x86-64.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ee2c264..fa2f5fa 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
+ R_X86_64_RELATIVE64.
+
2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
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;