From: Andrew Bennett Date: Wed, 10 Sep 2014 11:41:28 +0000 (+0100) Subject: Add mips*-img-elf* target triple. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9d58c068ccfa66fd94fffc001bbaf996ec53a7d;p=binutils-gdb.git Add mips*-img-elf* target triple. / * configure.ac: Add mips*-img-elf* target triple. * configure: Regenerate. bfd/ * config.bfd: Add mips*-img-elf* target triple. gas/ * configure.tgt: Add mips*-img-elf* target triple. gas/testsuite/ * gas/mips/mips.exp: Add mips*-img-elf* target triple. binutils/testsuite/ * binutils-all/objcopy.exp: Add mips*-img-elf* target triple. * binutils-all/readelf.exp: Likewise. ld/ * configure.tgt: Add mips*-img-elf* target triple. ld/testsuite/ * ld-mips-elf/mips-elf.exp: Add support for mips*-img-elf* target triple. --- diff --git a/ChangeLog b/ChangeLog index 47843e122f0..e76267edef2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-09-12 Andrew Bennett + + * configure.ac: Add mips*-img-elf* target triple. + * configure: Regenerate. + 2014-09-06 Kuan-Lin Chen * configure: Disable gdb for nds32*-*-* until supported. * configure.ac: Disable gdb for nds32*-*-* until supported. diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0bdebfc7a04..64448ec484c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2014-09-12 Andrew Bennett + + * config.bfd: Add mips*-img-elf* target triple. + 2014-09-12 Alan Modra * elf-bfd.h (struct eh_frame_array_ent): Add "range". diff --git a/bfd/config.bfd b/bfd/config.bfd index 4468e4a963a..7bcb92afeed 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -1033,7 +1033,7 @@ case "${targ}" in targ_defvec=mips_elf32_trad_le_vec targ_selvecs="mips_elf32_trad_be_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" ;; - mips*-sde-elf* | mips*-mti-elf*) + mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) targ_defvec=mips_elf32_trad_be_vec targ_selvecs="mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" ;; diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 8471e47d161..2a4185e1c68 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-12 Andrew Bennett + + * binutils-all/objcopy.exp: Add mips*-img-elf* target triple. + * binutils-all/readelf.exp: Likewise + 2014-09-06 Matthew Fortune * binutils-all/readelf.ss-mips: Account for new sections. diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index f4fa0b25328..49d466d7ffe 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -988,6 +988,7 @@ if [is_elf_format] { # targ_defvec=mips_elf32_n_le_vec in config.bfd. When syncing, # don't forget that earlier case-matches trump later ones. if { ![istarget "mips*-sde-elf*"] && ![istarget "mips*-mti-elf*"] + && ![istarget "mips*-img-elf*"] && ![istarget "mips64*-*-openbsd*"] } { setup_xfail "mips*-*-irix5*" "mips*-*-irix6*" "mips*-*-elf*" \ "mips*-*-rtems*" "mips*-*-windiss" "mips*-*-none" \ diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp index 2a6bc6ab5c7..e45d6ea20ed 100644 --- a/binutils/testsuite/binutils-all/readelf.exp +++ b/binutils/testsuite/binutils-all/readelf.exp @@ -103,6 +103,7 @@ proc readelf_test { options binary_file regexp_file xfails } { if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] || [istarget "mips*-mti-elf*"] + || [istarget "mips*-img-elf*"] || [istarget "mips*-*freebsd*"] } then { set target_machine tmips } else { diff --git a/configure b/configure index dfea3bd7459..4d0985e3259 100755 --- a/configure +++ b/configure @@ -3782,7 +3782,7 @@ case "${target}" in microblaze*) noconfigdirs="$noconfigdirs gprof" ;; - mips*-sde-elf* | mips*-mti-elf*) + mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) if test x$with_newlib = xyes; then noconfigdirs="$noconfigdirs gprof" fi @@ -6993,7 +6993,7 @@ case "${target}" in spu-*-*) target_makefile_frag="config/mt-spu" ;; - mips*-sde-elf* | mips*-mti-elf*) + mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) target_makefile_frag="config/mt-sde" ;; mipsisa*-*-elfoabi*) diff --git a/configure.ac b/configure.ac index dada0902d13..fe2fda36ab9 100644 --- a/configure.ac +++ b/configure.ac @@ -1110,7 +1110,7 @@ case "${target}" in microblaze*) noconfigdirs="$noconfigdirs gprof" ;; - mips*-sde-elf* | mips*-mti-elf*) + mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) if test x$with_newlib = xyes; then noconfigdirs="$noconfigdirs gprof" fi @@ -2371,7 +2371,7 @@ case "${target}" in spu-*-*) target_makefile_frag="config/mt-spu" ;; - mips*-sde-elf* | mips*-mti-elf*) + mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) target_makefile_frag="config/mt-sde" ;; mipsisa*-*-elfoabi*) diff --git a/gas/ChangeLog b/gas/ChangeLog index c5d7db6a180..4245679bcc0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2014-09-12 Andrew Bennett + + * configure.tgt: Add mips*-img-elf* target triple. + 2014-09-12 Alan Modra * config/tc-i386.c (match_template): Remove redundant "!!" testing diff --git a/gas/configure.tgt b/gas/configure.tgt index 4b789085ce9..d07d445ab8f 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -330,7 +330,8 @@ case ${generic_target} in mips*-*-freebsd* | mips*-*-kfreebsd*-gnu) fmt=elf em=freebsd ;; mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;; - mips*-sde-elf* | mips*-mti-elf*) fmt=elf em=tmips ;; + mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) + fmt=elf em=tmips ;; mips-*-elf* | mips-*-rtems*) fmt=elf ;; mips-*-netbsd*) fmt=elf em=tmips ;; mips-*-openbsd*) fmt=elf em=tmips ;; diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f67448b5a25..2981cef24f7 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-09-12 Andrew Bennett + + * gas/mips/mips.exp: Add mips*-img-elf* target triple. + 2014-09-10 H.J. Lu * gas/i386/i386.exp: Run suffix-intel, x86-64-suffix and diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 8f3691861b2..198d60ecb03 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -487,11 +487,13 @@ if { [istarget mips*-*-vxworks*] } { set addr32 [expr [istarget mipstx39*-*-*] || [istarget mips-*-linux*] || [istarget mipsel-*-linux*] \ || [istarget mipsisa32-*-linux*] || [istarget mipsisa32el-*-linux*]] set has_newabi [expr [istarget *-*-irix6*] || [istarget mips*-*-linux*] \ - || [istarget mips*-sde-elf*] || [istarget mips*-mti-elf*]] + || [istarget mips*-sde-elf*] || [istarget mips*-mti-elf*] \ + || [istarget mips*-img-elf*]] if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] || [istarget "mips*-mti-elf*"] + || [istarget "mips*-img-elf*"] || [istarget "mips*-*-*bsd*"] } then { set tmips "t" } else { diff --git a/ld/ChangeLog b/ld/ChangeLog index ac85c63582f..ba4ad9722b2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2014-09-12 Andrew Bennett + + * configure.tgt: Add mips*-img-elf* target triple. + 2014-09-01 Jon TURNEY * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff diff --git a/ld/configure.tgt b/ld/configure.tgt index fc99a5445f8..24e36d10f0d 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -459,7 +459,7 @@ mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;; mips*vr5000-*-elf*) targ_emul=elf32b4300 ;; mips*el-sde-elf*) targ_emul=elf32ltsmip targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" ;; -mips*-sde-elf* | mips*-mti-elf*) +mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) targ_emul=elf32btsmip targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;; mips64*el-ps2-elf*) targ_emul=elf32lr5900n32 diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8f38ff53454..f5aef2a33b1 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-12 Andrew Bennett + + * ld-mips-elf/mips-elf.exp: Add support for mips*-img-elf* target + triple. + 2014-09-10 Alan Modra * ld-aarch64/emit-relocs-local-addend.d: Adjust for changed diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 27108d46ced..92ab4b3f455 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -55,7 +55,8 @@ if {![istarget mips*-*-*] || ![is_elf_format]} { set has_newabi [expr [istarget *-*-irix6*] \ || [istarget mips*-*-linux*] \ || [istarget mips*-sde-elf*] \ - || [istarget mips*-mti-elf*]] + || [istarget mips*-mti-elf*] \ + || [istarget mips*-img-elf*]] set linux_gnu [expr [istarget mips*-*-linux*]] set embedded_elf [expr [istarget mips*-*-elf]] @@ -79,7 +80,7 @@ if { [istarget *-*-irix6*] } { set abi_ldflags(o32) -melf32btsmip_fbsd } if { [istarget mips*-*-linux*] || [istarget mips*-sde-elf*] - || [istarget mips*-mti-elf*] } { + || [istarget mips*-mti-elf*] || [istarget mips*-img-elf*]} { set abi_ldflags(n32) -melf32btsmipn32 set abi_ldflags(n64) -melf64btsmip } elseif { [istarget mips64*-*freebsd*] } {