From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1512 invoked by alias); 10 Aug 2006 17:12:46 -0000 Received: (qmail 1493 invoked by uid 22791); 10 Aug 2006 17:12:45 -0000 X-Spam-Check-By: sourceware.org Received: from bender.bawue.de (HELO bender.bawue.de) (193.7.176.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Aug 2006 17:12:42 +0000 Received: from lagash (mipsfw.mips-uk.com [194.74.144.146]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by bender.bawue.de (Postfix) with ESMTP id 6489F44759; Thu, 10 Aug 2006 19:12:45 +0200 (MEST) Received: from ths by lagash with local (Exim 4.62) (envelope-from ) id 1GBE48-0002qk-3n; Thu, 10 Aug 2006 18:11:28 +0100 Date: Thu, 10 Aug 2006 19:17:00 -0000 To: binutils@sourceware.org, gdb-patches@sources.redhat.com Cc: config-patches@gnu.org Subject: [PATCH] Add a mips*-sde-elf* configuration Message-ID: <20060810171128.GB9687@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 From: Thiemo Seufer Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00083.txt.bz2 Hello All, the appended patch adds mips*-sde-elf* configurations to binutils. It is derived from the default configuration of MIPS Technologies' SDE reference toolchain. Patches for other toolchain parts like GCC are in the works. The main difference vs. mips*-elf is the use of the "traditional" MIPS ELF variant for SDE which is closer to generic ELF, while mips*-elf uses the SGI-ish variant do to historic reasons. The "traditional" variant is also used in the mips*-linux configurations. I believe it is a good idea to encourage the use of the "traditional" ELF variant, long-term it will save some maintenance hassle. I stayed with the "sde" moniker because - "mips" is already taken by the old MIPS Inc. RiscOS machines - MTI (the semi-official shortcut for "MIPS Technologies Inc.") is equally undecipherable - staying with SDE allows easier upgrades for current SDE users, as well as "sidegrades" to the MIPS reference toolchain to pick up features which didn't made it in time for e.g. the GCC release cycle. Thiemo 2006-08-10 Thiemo Seufer Nigel Stephens David Ung [ ChangeLog ] * config.sub: Add support for sde as alias of mipsisa32-sde-elf. [ bfd/ChangeLog ] * config.bfd: Add configurations for mips*el-sde-elf* and mips*-sde-elf*. [ binutils/testsuite/ChangeLog ] * binutils-all/readelf.exp (readelf_test): Handle mips*-sde-elf*. [ gas/ChangeLog ] * configure.tgt: Handle mips*-sde-elf*. [ gas/testsuite/ChangeLog ] * gas/mips/mips.exp: Handle mips*-sde-elf*. Index: config.sub =================================================================== RCS file: /cvs/src/src/config.sub,v retrieving revision 1.58 diff -u -p -r1.58 config.sub --- config.sub 14 May 2006 00:51:19 -0000 1.58 +++ config.sub 31 Jul 2006 14:10:46 -0000 @@ -909,6 +909,10 @@ case $basic_machine in sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux Index: bfd/config.bfd =================================================================== RCS file: /cvs/src/src/bfd/config.bfd,v retrieving revision 1.209 diff -u -p -r1.209 config.bfd --- bfd/config.bfd 25 May 2006 13:59:25 -0000 1.209 +++ bfd/config.bfd 31 Jul 2006 14:10:46 -0000 @@ -898,6 +898,16 @@ case "${targ}" in want64=true ;; #endif + mips*el-sde-elf*) + targ_defvec=bfd_elf32_tradlittlemips_vec + targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" + want64=true + ;; + mips*-sde-elf*) + targ_defvec=bfd_elf32_tradbigmips_vec + targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" + want64=true + ;; mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*) targ_defvec=bfd_elf32_littlemips_vec targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" Index: binutils/testsuite/binutils-all/readelf.exp =================================================================== RCS file: /cvs/src/src/binutils/testsuite/binutils-all/readelf.exp,v retrieving revision 1.22 diff -u -p -r1.22 readelf.exp --- binutils/testsuite/binutils-all/readelf.exp 8 May 2005 14:17:40 -0000 1.22 +++ binutils/testsuite/binutils-all/readelf.exp 31 Jul 2006 14:10:48 -0000 @@ -193,7 +193,7 @@ proc readelf_test { options binary_file set target_machine "" if [istarget "mips*-*-*"] then { - if { [istarget "mips*-*-*linux*"] } then { + if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] } then { set target_machine tmips } else { set target_machine mips Index: gas/configure.tgt =================================================================== RCS file: /cvs/src/src/gas/configure.tgt,v retrieving revision 1.26 diff -u -p -r1.26 configure.tgt --- gas/configure.tgt 5 Apr 2006 12:41:57 -0000 1.26 +++ gas/configure.tgt 31 Jul 2006 14:10:49 -0000 @@ -266,6 +266,7 @@ case ${generic_target} in mips-*-riscos*) fmt=ecoff ;; mips*-*-linux*) fmt=elf em=tmips ;; mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;; + mips*-sde-elf*) fmt=elf em=tmips ;; mips-*-sysv*) fmt=ecoff ;; mips-*-elf* | mips-*-rtems*) fmt=elf ;; mips-*-netbsd*) fmt=elf em=tmips ;; Index: gas/testsuite/gas/mips/mips.exp =================================================================== RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v retrieving revision 1.123 diff -u -p -r1.123 mips.exp --- gas/testsuite/gas/mips/mips.exp 4 Jul 2006 16:39:08 -0000 1.123 +++ gas/testsuite/gas/mips/mips.exp 31 Jul 2006 14:10:50 -0000 @@ -402,7 +402,7 @@ if { [istarget mips*-*-vxworks*] } { set addr32 [expr [istarget mipstx39*-*-*] || [istarget mips-*-linux*] || [istarget mipsel-*-linux*]] set has_newabi [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]] - if { [istarget "mips*-*-*linux*"] } then { + if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] } then { set tmips "t" } else { set tmips ""