aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-07-05 21:50:43 +0000
committerStan Shebs <shebs@codesourcery.com>1994-07-05 21:50:43 +0000
commit11676adc147c73e8034629e386f9c28066eed561 (patch)
tree53b9cfa5a682155641c2dffc2e7546afc91d4e9a /bfd/hosts
parent10f67315f93ce4aa1957d66b97124143431904a1 (diff)
downloadgdb-11676adc147c73e8034629e386f9c28066eed561.zip
gdb-11676adc147c73e8034629e386f9c28066eed561.tar.gz
gdb-11676adc147c73e8034629e386f9c28066eed561.tar.bz2
Mach 3 support.
* config.bfd (m88*-*-mach3*, mips*-dec-mach3*, mips*-*-mach3*): New targets. * configure.host (i[34]86-*-mach3*, ns32k-*-mach3*): Recognize "mach3" instead of "mach". (m88*-*-mach3*, mips*-dec-mach3*, mips*-*-mach3*): New hosts. * targets.c (m88kmach3_vec): New target vector. (bfd_target_vector): Add i386mach3_vec and m88kmach3_vec, but inside #if 0. * aoutx.h (some_aout_object_p) [MACH]: Recognize executables by checking for execute permission, instead of looking at entry point. * i386mach3.c: Update, define MACH, N_TXTOFF, N_TXTADDR, N_SHARED_LIB, don't include aout/*.h files, etc. * m88kmach3.c: New file, m88k Mach 3 target. * config/m88k-mach3.mt, config/mips-mach3.mt: New files, target makefile fragments. * config/i386mach3.mh, config/m88kmach3.mh, config/mipsmach3.mh: New files, host makefile fragments. * hosts/m88kmach3.h, hosts/mipsmach3.h: New files, host definitions.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/m88kmach3.h19
-rw-r--r--bfd/hosts/mipsmach3.h12
2 files changed, 31 insertions, 0 deletions
diff --git a/bfd/hosts/m88kmach3.h b/bfd/hosts/m88kmach3.h
new file mode 100644
index 0000000..c970fe0
--- /dev/null
+++ b/bfd/hosts/m88kmach3.h
@@ -0,0 +1,19 @@
+#include "hosts/std-host.h"
+
+#include <machine/vmparam.h>
+#include <sys/param.h>
+
+#ifndef MACH
+#define MACH
+#endif
+
+#undef UPAGES
+#define UPAGES 3
+
+#define HAVE_STRERROR
+
+#define HOST_PAGE_SIZE NBPG
+#define HOST_SEGMENT_SIZE NBPG
+#define HOST_MACHINE_ARCH bfd_arch_m88k
+#define HOST_TEXT_START_ADDR USRTEXT
+#define HOST_STACK_END_ADDR USRSTACK
diff --git a/bfd/hosts/mipsmach3.h b/bfd/hosts/mipsmach3.h
new file mode 100644
index 0000000..48bc7c9
--- /dev/null
+++ b/bfd/hosts/mipsmach3.h
@@ -0,0 +1,12 @@
+#include "hosts/std-host.h"
+
+#include <machine/vmparam.h>
+#include <machine/machparam.h>
+#include <sys/param.h>
+
+#define HOST_PAGE_SIZE NBPG
+/* #define HOST_SEGMENT_SIZE NBPG */
+#define HOST_MACHINE_ARCH bfd_arch_mips
+#define HOST_TEXT_START_ADDR USRTEXT
+#define HOST_DATA_START_ADDR USRDATA
+#define HOST_STACK_END_ADDR USRSTACK