public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH for elf32-mips.c typo
@ 1999-07-28  1:23 Mark Mitchell
  0 siblings, 0 replies; only message in thread
From: Mark Mitchell @ 1999-07-28  1:23 UTC (permalink / raw)
  To: binutils

I checked in the following one-line fix.  On N32/64 MIPS ELF, you can
have multiple relocations with the same offset; an R_MIPS_NONE
relocation, however, marks the end of a sequence.  The current code
didn't check that condition correctly.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

1999-07-28  Mark Mitchell  <mark@codesourcery.com>

	* elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.

Index: elf32-mips.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/elf32-mips.c,v
retrieving revision 1.33
diff -c -p -r1.33 elf32-mips.c
*** elf32-mips.c	1999/07/21 23:32:29	1.33
--- elf32-mips.c	1999/07/28 08:07:36
*************** _bfd_mips_elf_relocate_section (output_b
*** 6601,6607 ****
  	 for the next.  */
        if (rel + 1 < relend 
  	  && rel->r_offset == rel[1].r_offset
! 	  && r_type != R_MIPS_NONE)
  	use_saved_addend_p = true;
        else
  	use_saved_addend_p = false;
--- 6601,6607 ----
  	 for the next.  */
        if (rel + 1 < relend 
  	  && rel->r_offset == rel[1].r_offset
! 	  && ELF32_R_TYPE (rel[1].r_info) != R_MIPS_NONE)
  	use_saved_addend_p = true;
        else
  	use_saved_addend_p = false;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-28  1:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-28  1:23 PATCH for elf32-mips.c typo Mark Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).