aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2015-11-20 16:11:22 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2015-11-20 16:16:40 +0000
commitf21cd979851fb422b8c01ee26b85b0273885350e (patch)
tree3ef96d2bd634a035e19960b4d7eefdee644bb33d /ld
parent250aafa4773feafd5ca0a61f270b1e901dcd8987 (diff)
downloadgdb-f21cd979851fb422b8c01ee26b85b0273885350e.zip
gdb-f21cd979851fb422b8c01ee26b85b0273885350e.tar.gz
gdb-f21cd979851fb422b8c01ee26b85b0273885350e.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/configure.tgt3
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index d6bf9ab..c2fabd3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-20 Maciej W. Rozycki <macro@imgtec.com>
+
+ * configure.tgt <mips*el-mti-elf*, mips*el-img-elf*>: Add
+ targets.
+
2015-11-19 Alan Modra <amodra@gmail.com>
PR ld/19264
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 6b6bbf2..27742c0 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -490,7 +490,8 @@ mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
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