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] Add a mips*-sde-elf* configuration


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  <ths@mips.com>
            Nigel Stephens  <nigel@mips.com>
            David Ung  <davidu@mips.com>

	[ 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 ""


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