This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix MIPS16 stub calling relocations


Hello All,

I committed the appended patch, it makes sure a (32bit) call stub to
MIPS16 code is called with the proper relocation type.


Thiemo


2006-06-09  David Ung  <davidu@mips.com>

	* bfd/elfxx-mips.c (mips_elf_calculate_relocation): Fix mode for stub
	calling relocations.


Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.170
diff -u -p -r1.170 elfxx-mips.c
--- bfd/elfxx-mips.c	8 Jun 2006 23:51:25 -0000	1.170
+++ bfd/elfxx-mips.c	9 Jun 2006 12:55:16 -0000
@@ -4074,6 +4074,8 @@ mips_elf_calculate_relocation (bfd *abfd
 	}
 
       symbol = sec->output_section->vma + sec->output_offset;
+      /* The target is 16-bit, but the stub isn't.  */
+      target_is_16_bit_code_p = FALSE;
     }
   /* If this is a 16-bit call to a 32- or 64-bit function with a stub, we
      need to redirect the call to the stub.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]