aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sh64.c
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 /bfd/elf64-sh64.c
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.
Diffstat (limited to 'bfd/elf64-sh64.c')
-rw-r--r--bfd/elf64-sh64.c6
1 files changed, 4 insertions, 2 deletions
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))