public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch, mips] Patch for new mips triplet - mips-mti-elf
@ 2012-09-13 21:13 Steve Ellcey 
  2012-09-16  8:01 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey  @ 2012-09-13 21:13 UTC (permalink / raw)
  To: binutils

This is a patch to implement a new mips target, mips-mti-elf.  On the
binutils side this target is identical to mips-sde-elf.  The reason to
create it is so that in GCC we can have different (fewer) multilib targets
then mips-sde-elf has.  This gives us a smaller faster builds.  The
changes for binutils are very simple, it is just changing the bfd/config.bfd,
gas/configure.tgt, and ld/configure.tgt files to treat mips-mti-elf in
the identical manner as mips-sde-elf.  I also have a couple of changes
in the sim directory to support the gnu simulator but I will send those
to the gdb mailing list.

The gcc patch can be found at
 http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00938.html

OK to checkin?

Steve Ellcey
sellcey@mips.com


bfd/ChangeLog

2012-09-13  Steve Ellcey  <sellcey@mips.com>

	* config.bfd: Add mips*-mti-elf* target.


gas/ChangeLog

2012-09-13  Steve Ellcey  <sellcey@mips.com>

	* configure.tgt: Add mips*-mti-elf* target.


ld/ChangeLog

2012-09-13  Steve Ellcey  <sellcey@mips.com>

	* configure.tgt: Add mips*-mti-elf* target.



diff --git a/bfd/config.bfd b/bfd/config.bfd
index 6025f26..ab20a13 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -983,7 +983,7 @@ case "${targ}" in
     targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
     want64=true
     ;;
-  mips*-sde-elf*)
+  mips*-sde-elf* | mips*-mti-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"
     want64=true
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 9e44de0..6db1be7 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -308,7 +308,7 @@ 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*)			fmt=elf em=tmips ;;
+  mips*-sde-elf*|mips*-mti-elf*)	fmt=elf em=tmips ;;
   mips-*-sysv*)				fmt=ecoff ;;
   mips-*-elf* | mips-*-rtems*)		fmt=elf ;;
   mips-*-netbsd*)			fmt=elf em=tmips ;;
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 72bc5bc..556438e 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -424,7 +424,8 @@ 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*)		targ_emul=elf32btsmip
+mips*-sde-elf*|mips*-mti-elf*)
+			targ_emul=elf32btsmip
 			targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;;
 mips*el-*-elf*)		targ_emul=elf32elmip ;;
 mips*-*-elf*)		targ_emul=elf32ebmip ;;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch, mips] Patch for new mips triplet - mips-mti-elf
  2012-09-13 21:13 [patch, mips] Patch for new mips triplet - mips-mti-elf Steve Ellcey 
@ 2012-09-16  8:01 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2012-09-16  8:01 UTC (permalink / raw)
  To: Steve Ellcey ; +Cc: binutils

"Steve Ellcey " <sellcey@mips.com> writes:
> This is a patch to implement a new mips target, mips-mti-elf.  On the
> binutils side this target is identical to mips-sde-elf.  The reason to
> create it is so that in GCC we can have different (fewer) multilib targets
> then mips-sde-elf has.  This gives us a smaller faster builds.  The
> changes for binutils are very simple, it is just changing the bfd/config.bfd,
> gas/configure.tgt, and ld/configure.tgt files to treat mips-mti-elf in
> the identical manner as mips-sde-elf.  I also have a couple of changes
> in the sim directory to support the gnu simulator but I will send those
> to the gdb mailing list.
>
> The gcc patch can be found at
>  http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00938.html
>
> OK to checkin?

OK, thanks.

Richard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-16  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-13 21:13 [patch, mips] Patch for new mips triplet - mips-mti-elf Steve Ellcey 
2012-09-16  8:01 ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).