This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] [rfa] elf32-sh.c: Fix for relaxation testcases
- To: Nick Clifton <nickc at redhat dot com>, Bernd Schmidt <bernds at cygnus dot co dot uk>
- Subject: Re: [patch] [rfa] elf32-sh.c: Fix for relaxation testcases
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 11 Nov 2000 04:40:51 -0200
- Cc: hp at bitrange dot com, binutils at sourceware dot cygnus dot com
- Organization: GCC Team, Red Hat
- References: <200011102000.MAA22277@elmo.cygnus.com>
On Nov 10, 2000, Nick Clifton <nickc@redhat.com> wrote:
> : 2000-10-29 Hans-Peter Nilsson <hp@bitrange.com>
> :
> : * elf32-sh.c (sh_elf_relocate_section): Add case for R_SH_NONE.
> Approved.
I like this one better. It accomplishes exactly the same, but saves a
little bit of work, so I'm checking it in instead. It seems that
Bernd had forgotten to post it here :-(
Index: bfd/ChangeLog
from Bernd Schmidt <bernds@cygnus.co.uk>
* elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
Index: bfd/elf32-sh.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh.c,v
retrieving revision 1.21
diff -u -p -r1.21 elf32-sh.c
--- bfd/elf32-sh.c 2000/09/18 16:19:15 1.21
+++ bfd/elf32-sh.c 2000/11/11 06:40:17
@@ -2904,6 +2904,8 @@ sh_elf_relocate_section (output_bfd, inf
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
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me