diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-11-11 06:43:42 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2000-11-11 06:43:42 +0000 |
commit | c5aeb40fc6fd5090594d7e1a3e5c48da5bbbd237 (patch) | |
tree | 8957bc70843e63fb003f748070725fdb71046ef8 /bfd | |
parent | 54a4ca2e1ddacf7a9af0d9bcd41d73899a30ed4a (diff) | |
download | gdb-c5aeb40fc6fd5090594d7e1a3e5c48da5bbbd237.zip gdb-c5aeb40fc6fd5090594d7e1a3e5c48da5bbbd237.tar.gz gdb-c5aeb40fc6fd5090594d7e1a3e5c48da5bbbd237.tar.bz2 |
* elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf32-sh.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 90142fd..e4e6036 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk> + + * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs. + 2000-11-10 Kazu Hirata <kazu@hxi.com> * coff-h8300.c: Fix formatting. diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index bd2b3ed..a348303 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 |