From 11676adc147c73e8034629e386f9c28066eed561 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 5 Jul 1994 21:50:43 +0000 Subject: 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. --- bfd/hosts/m88kmach3.h | 19 +++++++++++++++++++ bfd/hosts/mipsmach3.h | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 bfd/hosts/m88kmach3.h create mode 100644 bfd/hosts/mipsmach3.h (limited to 'bfd/hosts') 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 +#include + +#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 +#include +#include + +#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 -- cgit v1.1