From cf587de8535d7ae056efc93daf07bee451262f7c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 6 Nov 1995 23:04:44 +0000 Subject: Mon Nov 6 17:13:15 1995 Harry Dolan * coff-i860.c: New file, based on coff-i386.c. * cpu-i860.c: New file, based on cpu-i386.c. * hosts/i860mach3.h: New file, based on hosts/i386mach3.h. * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New targets, using i860coff_vec. * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using trad-core.o and hosts/i860mach3.h. (i860coff_vec): Use coff-i860.o and cofflink.o. * configure: Rebuild. * Makefile.in: Rebuild dependencies. (ALL_MACHINES): Add cpu-i860.o. (BFD32_BACKENDS): Add coff-i860.o. (CFILES): Add cpu-i860.c and coff-i860.c. * targets.c (i860coff_vec): Declare. (bfd_target_vector): Add &i860coff_vec. * archures.c (bfd_i860_arch): Declare. (bfd_archures_list): Add &bfd_i860_arch. * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number. (coff_set_flags): Handle bfd_arch_i860. (coff_write_object_contents): Handle I860 a.out magic number. --- bfd/coffcode.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'bfd/coffcode.h') diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f8c797a..2cc3980 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1114,6 +1114,11 @@ coff_set_arch_mach_hook (abfd, filehdr) } break; #endif +#ifdef I860 + case I860MAGIC: + arch = bfd_arch_i860; + break; +#endif #ifdef I960 #ifdef I960ROMAGIC case I960ROMAGIC: @@ -1618,6 +1623,12 @@ coff_set_flags (abfd, magicp, flagsp) return true; break; #endif +#ifdef I860MAGIC + case bfd_arch_i860: + *magicp = I860MAGIC; + return true; + break; +#endif #ifdef MC68MAGIC case bfd_arch_m68k: #ifdef APOLLOM68KMAGIC @@ -2207,6 +2218,11 @@ coff_write_object_contents (abfd) internal_a.magic = NMAGIC; /* Assume separate i/d */ #define __A_MAGIC_SET__ #endif /* A29K */ +#ifdef I860 + /* FIXME: What are the a.out magic numbers for the i860? */ + internal_a.magic = 0; +#define __A_MAGIC_SET__ +#endif /* I860 */ #ifdef I960 internal_a.magic = (magic == I960ROMAGIC ? NMAGIC : OMAGIC); #define __A_MAGIC_SET__ -- cgit v1.1