This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[Patch] Switching h8300*rtems to elf (Was: Re: Binutils 2.15.97available)
On Fri, 2005-04-29 at 10:06 -0400, Daniel Jacobowitz wrote:
> On Thu, Apr 21, 2005 at 11:54:15AM +0200, Ralf Corsepius wrote:
> > Any chances to see these patches below applied to binutils-2.16 rsp.
> > gcc-4.0?
> >
> > They add an h8300-*-rtemscoff target, binutils can deprecate/remove
> > later as part of binutils' h8300-*-coff removal, and switches h8300-*-
> > rtems* to using h8300-*-elf.
> >
> > These patches should not have any impact on other targets, but would
> > help RTEMS in a transition from coff to elf.
>
> I can apply the binutils patch for HEAD, but you'll need to give me a
> changelog entry first.
>
Here we go.
TIA,
Ralf
2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
* config.bfd: Add h8300*-*-rtemscoff.
Switch h8300*-*-rtems* to elf.
Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.183
diff -u -r1.183 config.bfd
--- config.bfd 23 Mar 2005 15:35:43 -0000 1.183
+++ config.bfd 29 Apr 2005 15:48:39 -0000
@@ -369,7 +369,12 @@
targ_selvecs=bfd_elf32_frv_vec
;;
- h8300*-*-elf)
+ h8300*-*-rtemscoff*)
+ targ_defvec=h8300coff_vec
+ targ_underscore=yes
+ ;;
+
+ h8300*-*-elf | h8300*-*-rtems*)
targ_defvec=bfd_elf32_h8300_vec
targ_underscore=yes
;;
2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.tgt: Add h8300*-*-rtemscoff.
Switch h8300*-*-rtems* to elf.
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gas/configure.tgt,v
retrieving revision 1.9
diff -u -r1.9 configure.tgt
--- configure.tgt 14 Apr 2005 18:49:04 -0000 1.9
+++ configure.tgt 29 Apr 2005 15:51:36 -0000
@@ -161,9 +161,9 @@
hppa-*-bsd*) fmt=som em=hppa ;;
hppa-*-hiux*) fmt=som em=hppa ;;
- h8300-*-rtems*) fmt=coff ;;
+ h8300-*-rtemscoff*) fmt=coff ;;
h8300-*-coff) fmt=coff ;;
- h8300-*-elf) fmt=elf ;;
+ h8300-*-elf | h8300-*-rtems*) fmt=elf ;;
h8500-*-rtems*) fmt=coff ;;
h8500-*-coff) fmt=coff ;;
2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.tgt: Add h8300*-*-rtemscoff.
Switch h8300*-*-rtems* to elf.
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.167
diff -u -r1.167 configure.tgt
--- configure.tgt 23 Mar 2005 15:35:50 -0000 1.167
+++ configure.tgt 29 Apr 2005 15:53:28 -0000
@@ -284,10 +284,10 @@
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
xscale-*-coff) targ_emul=armcoff ;;
xscale-*-elf) targ_emul=armelf ;;
-h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*)
+h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn h8300sx h8300sxn"
;;
-h8300-*-elf*)
+h8300-*-elf* | h8300-*-rtems*)
targ_emul=h8300elf;
targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf"
;;