This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Add m32c/m32r rtems targets
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 16 Oct 2008 17:01:36 -0500
- Subject: Add m32c/m32r rtems targets
Hi,
Hopefully there is still time to make 2.19 with
this patch. Not much to it.
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* bfd/config.bfd: Add m32c-*-rtems* and m32r-*-rtems*.
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* gas/configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* ld/configure.tgt Add m32c-*-rtems* and m32r-*-rtems*.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
diff -Naur binutils-2.18.93.orig/bfd/config.bfd binutils-2.18.93/bfd/config.bfd
--- binutils-2.18.93.orig/bfd/config.bfd 2008-04-16 20:02:01.000000000 +0200
+++ binutils-2.18.93/bfd/config.bfd 2008-10-10 04:19:21.000000000 +0200
@@ -721,7 +721,7 @@
targ_defvec=bfd_elf32_iq2000_vec
;;
- m32c-*-elf)
+ m32c-*-elf | m32c-*-rtems*)
targ_defvec=bfd_elf32_m32c_vec
;;
diff -Naur binutils-2.18.93.orig/gas/configure.tgt binutils-2.18.93/gas/configure.tgt
--- binutils-2.18.93.orig/gas/configure.tgt 2008-10-02 10:07:17.000000000 +0200
+++ binutils-2.18.93/gas/configure.tgt 2008-10-10 04:19:21.000000000 +0200
@@ -244,9 +244,10 @@
iq2000-*-elf) fmt=elf ;;
- m32c-*-elf) fmt=elf ;;
+ m32c-*-elf | m32c-*-rtems*) fmt=elf ;;
m32r-*-elf*) fmt=elf ;;
+ m32r-*-rtems*) fmt=elf ;;
m32r-*-linux*) fmt=elf em=linux;;
m68hc11-*-* | m6811-*-*) fmt=elf ;;
diff -Naur binutils-2.18.93.orig/ld/configure.tgt binutils-2.18.93/ld/configure.tgt
--- binutils-2.18.93.orig/ld/configure.tgt 2008-08-09 07:35:13.000000000 +0200
+++ binutils-2.18.93/ld/configure.tgt 2008-10-10 04:19:21.000000000 +0200
@@ -301,10 +301,12 @@
;;
iq2000-*-elf) targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10"
;;
-m32c-*-elf) targ_emul=elf32m32c
+m32c-*-elf|m32c-*-rtems*)
+ targ_emul=elf32m32c
;;
m32r*le-*-elf*) targ_emul=m32rlelf ;;
m32r*-*-elf*) targ_emul=m32relf ;;
+m32r*-*-rtems*) targ_emul=m32relf ;;
m32r*le-*-linux-*) targ_emul=m32rlelf_linux ;;
m32r*-*-linux-*) targ_emul=m32relf_linux
;;