This is the mail archive of the binutils@sources.redhat.com 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] Switching sh-*rtems to ELF


Hi,

we (RTEMS) would like to switch sh-*rtems from COFF to ELF with
binutils-2.15/gcc-3.4.

Patches against binutils-2.15 can be found in the attachments,
corresponding patches against gcc-3.4/gcc-3.5 already have been
submitted to gcc-patches.

TIA,
	Ralf

2004-03-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

	* config.bfd: Switch sh-*-rtems* to ELF.
	Add sh-*-rtemscoff*.

Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.152.6.2
diff -u -r1.152.6.2 config.bfd
--- bfd/config.bfd	15 Mar 2004 00:03:55 -0000	1.152.6.2
+++ bfd/config.bfd	15 Mar 2004 04:46:37 -0000
@@ -1090,7 +1090,12 @@
 #endif
     targ_underscore=yes
     ;;
-  sh-*-elf* | sh[1234]*-elf* | sh-*-rtemself* | sh-*-kaos*)
+  sh-*-rtemscoff*)
+    targ_defvec=shcoff_vec
+    targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
+    targ_underscore=yes
+    ;;
+  sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
     targ_defvec=bfd_elf32_sh_vec
     targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
 #ifdef BFD64
@@ -1116,7 +1121,7 @@
     # compiled correctly.
     targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
     ;;
-  sh-*-* | sh-*-rtems*)
+  sh-*-*)
     targ_defvec=shcoff_vec
     targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
     targ_underscore=yes
2004-03-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

	* config.bfd: Switch sh-*-rtems* to ELF.
	Add sh-*-rtemscoff*.

Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.152.6.2
diff -u -r1.152.6.2 config.bfd
--- bfd/config.bfd	15 Mar 2004 00:03:55 -0000	1.152.6.2
+++ bfd/config.bfd	15 Mar 2004 04:46:37 -0000
@@ -1090,7 +1090,12 @@
 #endif
     targ_underscore=yes
     ;;
-  sh-*-elf* | sh[1234]*-elf* | sh-*-rtemself* | sh-*-kaos*)
+  sh-*-rtemscoff*)
+    targ_defvec=shcoff_vec
+    targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
+    targ_underscore=yes
+    ;;
+  sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
     targ_defvec=bfd_elf32_sh_vec
     targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
 #ifdef BFD64
@@ -1116,7 +1121,7 @@
     # compiled correctly.
     targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
     ;;
-  sh-*-* | sh-*-rtems*)
+  sh-*-*)
     targ_defvec=shcoff_vec
     targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
     targ_underscore=yes
2004-03-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

	* configure.in: Switch sh-*-rtems* to ELF.
	Add sh-*-rtemscoff*.

Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.147
diff -u -r1.147 configure.in
--- gas/configure.in	2 Jan 2004 16:37:12 -0000	1.147
+++ gas/configure.in	15 Mar 2004 04:46:38 -0000
@@ -453,8 +453,8 @@
       sh-*-coff*)			fmt=coff ;;
       sh-*-nto*)			fmt=elf ;;
       sh-*-pe*)				fmt=coff em=pe bfd_gas=yes endian=little ;;
-      sh-*-rtemself*)			fmt=elf ;;
-      sh-*-rtems*)			fmt=coff ;;
+      sh-*-rtemscoff*)			fmt=coff ;;
+      sh-*-rtems*)			fmt=elf ;;
       sh-*-kaos*)			fmt=elf ;;
       shle*-*-kaos*)			fmt=elf ;;
       sh64-*-elf*)			fmt=elf ;;
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.144
diff -u -r1.144 configure.tgt
--- ld/configure.tgt	6 Jan 2004 19:19:52 -0000	1.144
+++ ld/configure.tgt	15 Mar 2004 04:46:40 -0000
@@ -332,7 +332,8 @@
 			targ_emul=shlelf
 			targ_extra_emuls="shelf shl sh"
 			;;
-sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself* | sh-*-kaos* | sh-*-vxworks)
+sh-*-rtemscoff*)	targ_emul=sh; targ_extra_emuls=shl ;;
+sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos* | sh-*-vxworks)
 			targ_emul=shelf
 			targ_extra_emuls="shlelf sh shl"
 			;;
@@ -341,7 +342,7 @@
 			;;
 sh-*-pe)		targ_emul=shpe ;
 			targ_extra_ofiles="deffilep.o pe-dll.o" ;;
-sh-*-*|sh-*-rtems*)	targ_emul=sh; targ_extra_emuls=shl ;;
+sh-*-*)			targ_emul=sh; targ_extra_emuls=shl ;;
 sh64le-*-elf*)
 			targ_emul=shlelf
 			targ_extra_emuls="shelf shlelf32 shelf32 shlelf64 shelf64"
2004-03-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

	* config.bfd: Switch sh-*-rtems* to ELF.
	Add sh-*-rtemscoff*.

Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.144
diff -u -r1.144 configure.tgt
--- ld/configure.tgt	6 Jan 2004 19:19:52 -0000	1.144
+++ ld/configure.tgt	15 Mar 2004 04:46:40 -0000
@@ -332,7 +332,8 @@
 			targ_emul=shlelf
 			targ_extra_emuls="shelf shl sh"
 			;;
-sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself* | sh-*-kaos* | sh-*-vxworks)
+sh-*-rtemscoff*)	targ_emul=sh; targ_extra_emuls=shl ;;
+sh-*-elf* | sh[1234]*-*-elf | sh-*-rtems* | sh-*-kaos* | sh-*-vxworks)
 			targ_emul=shelf
 			targ_extra_emuls="shlelf sh shl"
 			;;
@@ -341,7 +342,7 @@
 			;;
 sh-*-pe)		targ_emul=shpe ;
 			targ_extra_ofiles="deffilep.o pe-dll.o" ;;
-sh-*-*|sh-*-rtems*)	targ_emul=sh; targ_extra_emuls=shl ;;
+sh-*-*)			targ_emul=sh; targ_extra_emuls=shl ;;
 sh64le-*-elf*)
 			targ_emul=shlelf
 			targ_extra_emuls="shelf shlelf32 shelf32 shlelf64 shelf64"

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