aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-06 23:04:44 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-06 23:04:44 +0000
commitcf587de8535d7ae056efc93daf07bee451262f7c (patch)
treea60f62cc665351f026b624d51d706ef5a8737630 /bfd/hosts
parentf98c33694641b7cda35a0a4ff786d54132e4bb4b (diff)
downloadgdb-cf587de8535d7ae056efc93daf07bee451262f7c.zip
gdb-cf587de8535d7ae056efc93daf07bee451262f7c.tar.gz
gdb-cf587de8535d7ae056efc93daf07bee451262f7c.tar.bz2
Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
* 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.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/.Sanitize1
-rw-r--r--bfd/hosts/i860mach3.h27
2 files changed, 28 insertions, 0 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize
index 367d2eb..39ef327 100644
--- a/bfd/hosts/.Sanitize
+++ b/bfd/hosts/.Sanitize
@@ -34,6 +34,7 @@ i386linux.h
i386mach3.h
i386nbsd.h
i386sco.h
+i860mach3.h
m68knbsd.h
m88kmach3.h
mipsbsd.h
diff --git a/bfd/hosts/i860mach3.h b/bfd/hosts/i860mach3.h
new file mode 100644
index 0000000..edd2aa1
--- /dev/null
+++ b/bfd/hosts/i860mach3.h
@@ -0,0 +1,27 @@
+/* This file was hacked from i386mach3.h [dolan@ssd.intel.com] */
+
+#include <machine/vmparam.h>
+#include <sys/param.h>
+
+/* This is an ugly way to hack around the incorrect
+ * definition of UPAGES in i386/machparam.h.
+ *
+ * The definition should specify the size reserved
+ * for "struct user" in core files in PAGES,
+ * but instead it gives it in 512-byte core-clicks
+ * for i386 and i860. UPAGES is used only in trad-core.c.
+ */
+#if UPAGES == 16
+#undef UPAGES
+#define UPAGES 2
+#endif
+
+#if UPAGES != 2
+FIXME!! UPAGES is neither 2 nor 16
+#endif
+
+#define HOST_PAGE_SIZE 1
+#define HOST_SEGMENT_SIZE NBPG
+#define HOST_MACHINE_ARCH bfd_arch_i860
+#define HOST_TEXT_START_ADDR USRTEXT
+#define HOST_STACK_END_ADDR USRSTACK