[PATCH] Allow lazy binding if R_MIPS_JALR relocs are present

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Fri Jun 27 23:24:00 GMT 2003


Hello All,

this allows lazy binding for calls featuring R_MIPS_JALR relocations.
IRIX cc emits those for better PIC code optimization.


Thiemo


2003-06-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/bfd/ChangeLog
	* elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.


diff -BurpNX /bigdisk/src/gcc-exclude source-orig/bfd/elfxx-mips.c source/bfd/elfxx-mips.c
--- source-orig/bfd/elfxx-mips.c	Thu Jun 12 15:21:40 2003
+++ source/bfd/elfxx-mips.c	Fri Jun 27 10:06:04 2003
@@ -5512,6 +5544,7 @@ _bfd_mips_elf_check_relocs (abfd, info, 
 	case R_MIPS_CALL16:
 	case R_MIPS_CALL_HI16:
 	case R_MIPS_CALL_LO16:
+	case R_MIPS_JALR:
 	  break;
 	}
 



More information about the Binutils mailing list