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 fido support (Part 1/n)


Hi,

Attached is the first in a series of patches to add fido support to
binutils.

>From code generation point of view, fido is a CPU32 variant with a few
new instructions.

This patch teaches binutils to recognize fido.  For now, the patch
makes fido-none-elf an alias of m68k-none-elf.  I'll post subsequent
patches to add support for new instructions, a new flag (-mfidoa),
etc.

Tested by building binutils.  OK to apply?

Kazu Hirata

bfd/
2006-12-19  Kazu Hirata  <kazu@codesourcery.com>

	* elf32-m68k.c: Update uses of EF_M68K_*.

binutils/
2006-12-19  Kazu Hirata  <kazu@codesourcery.com>

	* readelf.c: Update uses of EF_M68K_*.

gas/
2006-12-19  Kazu Hirata  <kazu@codesourcery.com>

	* config/tc-m68k.c: Update uses of EF_M68K_*.

Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.220
diff -u -d -p -r1.220 config.bfd
--- bfd/config.bfd	16 Dec 2006 11:24:05 -0000	1.220
+++ bfd/config.bfd	19 Dec 2006 14:16:01 -0000
@@ -79,6 +79,7 @@ c54x*)		 targ_archs=bfd_tic54x_arch ;;
 crisv32)	 targ_archs=bfd_cris_arch ;;
 crx*)		 targ_archs=bfd_crx_arch ;;
 dlx*)		 targ_archs=bfd_dlx_arch ;;
+fido*)		 targ_archs=bfd_m68k_arch ;;
 hppa*)		 targ_archs=bfd_hppa_arch ;;
 i[3-7]86)	 targ_archs=bfd_i386_arch ;;
 i370)		 targ_archs=bfd_i370_arch ;;
@@ -381,6 +382,11 @@ case "${targ}" in
     targ_defvec=bfd_elf32_d30v_vec
     ;;
 
+  fido-*-elf* )
+    targ_defvec=bfd_elf32_m68k_vec
+    targ_selvecs="m68kcoff_vec ieee_vec"
+    ;;
+
   fr30-*-elf)
     targ_defvec=bfd_elf32_fr30_vec
     ;;
Index: gas/configure.tgt
===================================================================
RCS file: /cvs/src/src/gas/configure.tgt,v
retrieving revision 1.30
diff -u -d -p -r1.30 configure.tgt
--- gas/configure.tgt	25 Oct 2006 06:49:21 -0000	1.30
+++ gas/configure.tgt	19 Dec 2006 14:16:01 -0000
@@ -37,6 +37,7 @@ case ${cpu} in
   c4x*)			cpu_type=tic4x ;;
   crisv32)		cpu_type=cris arch=crisv32 ;;
   crx*)			cpu_type=crx endian=little ;;
+  fido)			cpu_type=m68k ;;
   hppa*)		cpu_type=hppa ;;
   i[3-7]86)		cpu_type=i386 arch=i386;;
   ia64)			cpu_type=ia64 ;;
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.199
diff -u -d -p -r1.199 configure.tgt
--- ld/configure.tgt	15 Dec 2006 05:49:28 -0000	1.199
+++ ld/configure.tgt	19 Dec 2006 14:16:01 -0000
@@ -120,6 +120,7 @@ d30v-*-*)		targ_emul=d30velf; targ_extra
 			;;
 dlx-*-elf*)		targ_emul=elf32_dlx
 			;;
+fido*-*-elf*)		targ_emul=m68kelf ;;
 fr30-*-*)		targ_emul=elf32fr30
 			;;
 frv-*-*linux*)		targ_emul=elf32frvfd ;;


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