aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2003-10-13 05:11:30 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2003-10-13 05:11:30 +0000
commit0c72ffe04b54a507cda04be44e92aa39fdef9ac1 (patch)
tree052547dc63ec493927fb38d4568e93925b5d6a1d
parentf19ae42f43165e8ebd10ba171d0757342d9be7ae (diff)
downloadgdb-0c72ffe04b54a507cda04be44e92aa39fdef9ac1.zip
gdb-0c72ffe04b54a507cda04be44e92aa39fdef9ac1.tar.gz
gdb-0c72ffe04b54a507cda04be44e92aa39fdef9ac1.tar.bz2
* elf64-sh64.c (sh_elf64_relocate_section): Tidy up for the
renumbering of some relocation numbers.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-sh64.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a66ceaf..aadca63 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ * elf64-sh64.c (sh_elf64_relocate_section): Tidy up for the
+ renumbering of some relocation numbers.
+
2003-10-11 Alan Modra <amodra@bigpond.net.au>
* coff-sh.c: Move definition of MAP and guard more code with
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c
index 4cc20a7..e05145e 100644
--- a/bfd/elf64-sh64.c
+++ b/bfd/elf64-sh64.c
@@ -1532,8 +1532,10 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
|| (r_type >= (int) R_SH_FIRST_INVALID_RELOC
&& r_type <= (int) R_SH_LAST_INVALID_RELOC)
|| (r_type >= (int) R_SH_DIR8WPN
- && r_type <= (int) R_SH_LAST_INVALID_RELOC_2)
- || (r_type >= (int) R_SH_FIRST_INVALID_RELOC_3
+ && r_type <= (int) R_SH_LAST_INVALID_RELOC)
+ || (r_type >= (int) R_SH_GNU_VTINHERIT
+ && r_type <= (int) R_SH_PSHL)
+ || (r_type >= (int) R_SH_FIRST_INVALID_RELOC_2
&& r_type <= R_SH_GOTPLT32)
|| (r_type >= (int) R_SH_FIRST_INVALID_RELOC_4
&& r_type <= (int) R_SH_LAST_INVALID_RELOC_4))