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] MIPS/LD: Fix little-endian `mti' and `img' ELF emulations


Make the little-endian emulation the default for the `mips*el-mti-elf*' 
and `mips*el-img-elf*' targets, fixing the issue of LD rejecting, in its 
default configuration, object files produced by GAS also in its default 
configuration.

	ld/
	* configure.tgt <mips*el-mti-elf*, mips*el-img-elf*>: Add
	targets.
---
Noticed in regression testing, the targets affected scored many failures.

OK to apply?

  Maciej

binutils-mips-ld-mti-img-emul-fix.diff
Index: binutils/ld/configure.tgt
===================================================================
--- binutils.orig/ld/configure.tgt	2015-11-17 13:07:15.787170347 +0000
+++ binutils/ld/configure.tgt	2015-11-17 13:08:22.185152116 +0000
@@ -490,7 +490,8 @@ mips*vr4100el-*-elf*)	targ_emul=elf32l43
 mips*vr4100-*-elf*)	targ_emul=elf32b4300 ;;
 mips*vr5000el-*-elf*)	targ_emul=elf32l4300 ;;
 mips*vr5000-*-elf*)	targ_emul=elf32b4300 ;;
-mips*el-sde-elf*)	targ_emul=elf32ltsmip
+mips*el-sde-elf* | mips*el-mti-elf* | mips*el-img-elf*)
+			targ_emul=elf32ltsmip
 			targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;;
 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
 			targ_emul=elf32btsmip


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