summaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-11-11 06:43:42 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-11-11 06:43:42 +0000
commitc3a771a7a28c47bbd4e8342bdecb1aecd29ac1cf (patch)
treeb98e67e9f70130435f47ff72a238e50b1f6fe9db /bfd/elf32-sh.c
parent37da827a31f02025b73c8a8793efb92dec010b01 (diff)
downloadbinutils-redhat-c3a771a7a28c47bbd4e8342bdecb1aecd29ac1cf.tar.gz
* elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index bd2b3ed7d8..a3483035ed 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -2904,6 +2904,8 @@ sh_elf_relocate_section (output_bfd, info, input_bfd, input_section,
if (r_type > (int) R_SH_LAST_INVALID_RELOC
&& r_type < (int) R_SH_LOOP_START)
continue;
+ if (r_type == (int) R_SH_NONE)
+ continue;
if (r_type < 0
|| r_type >= R_SH_max