diff options
Diffstat (limited to 'bfd/hosts')
-rw-r--r-- | bfd/hosts/.Sanitize | 14 | ||||
-rw-r--r-- | bfd/hosts/i386nbsd.h | 14 | ||||
-rw-r--r-- | bfd/hosts/nbsd.h | 34 | ||||
-rw-r--r-- | bfd/hosts/ns32knbsd.h | 13 | ||||
-rw-r--r-- | bfd/hosts/sparcnbsd.h | 19 |
5 files changed, 90 insertions, 4 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize index 5c23108..e4c8e2f 100644 --- a/bfd/hosts/.Sanitize +++ b/bfd/hosts/.Sanitize @@ -33,16 +33,16 @@ alphaosf.h apollo68.h apollov68.h decstation.h -dgux.h delta68.h delta88.h delta88v4.h +dgux.h dose.h dpx2.h go32.h harris.h -hp300bsd.h hp300.h +hp300bsd.h hppabsd.h hppahpux.h hppaosf.h @@ -51,6 +51,7 @@ i386bsd.h i386linux.h i386lynx.h i386mach3.h +i386nbsd.h i386osf1mk.h i386sco.h i386v.h @@ -64,9 +65,12 @@ m88kmach3.h miniframe.h mipsbsd.h mipsmach3.h -news.h -news-mips.h +nbsd.h ncr3000.h +news-mips.h +news.h +ns32knbsd.h +ns32knetbsd.h pc532mach.h riscos.h rs6000.h @@ -76,6 +80,8 @@ solaris2.h sparc-ll.h sparc.h sparclynx.h +sparcnbsd.h +sparcnetbsd.h std-host.h stratus.h sun3.h diff --git a/bfd/hosts/i386nbsd.h b/bfd/hosts/i386nbsd.h new file mode 100644 index 0000000..1fd3bed --- /dev/null +++ b/bfd/hosts/i386nbsd.h @@ -0,0 +1,14 @@ +/* Intel 386 running NetBSD */ + +#ifndef hosts_i386bsd_H +#define hosts_i386bsd_H + +#include "hosts/nbsd.h" + +#define HOST_MACHINE_ARCH bfd_arch_i386 + +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ + ((core_bfd)->tdata.trad_core_data->u.u_sig) +#define u_comm u_kproc.kp_proc.p_comm +#endif + diff --git a/bfd/hosts/nbsd.h b/bfd/hosts/nbsd.h new file mode 100644 index 0000000..1c7a779 --- /dev/null +++ b/bfd/hosts/nbsd.h @@ -0,0 +1,34 @@ +/* Architecture independant NetBSD host support */ + +#ifndef hosts_nbsd_H_ +#define hosts_nbsd_H__ + +#include <fcntl.h> +#include <errno.h> +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <ctype.h> +#include <string.h> +#include <sys/file.h> +#include <machine/param.h> +#include <machine/vmparam.h> +#include <machine/reg.h> + +#ifndef O_ACCMODE +#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) +#endif + +#define SEEK_SET 0 +#define SEEK_CUR 1 + +#define POSIX_UTIME + +#include "fopen-same.h" + +#define HOST_PAGE_SIZE NBPG +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK + +#endif diff --git a/bfd/hosts/ns32knbsd.h b/bfd/hosts/ns32knbsd.h new file mode 100644 index 0000000..d072d6d --- /dev/null +++ b/bfd/hosts/ns32knbsd.h @@ -0,0 +1,13 @@ +/* ns32k running NetBSD */ + +#ifndef hosts_ns32knbsd_h +#define hosts_ns32knbsd_h + +#include "hosts/nbsd.h" + +#define HOST_MACHINE_ARCH bfd_arch_ns32k + +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ + ((core_bfd)->tdata.trad_core_data->u.u_sig) +#define u_comm u_kproc.kp_proc.p_comm +#endif diff --git a/bfd/hosts/sparcnbsd.h b/bfd/hosts/sparcnbsd.h new file mode 100644 index 0000000..d5ae6d9 --- /dev/null +++ b/bfd/hosts/sparcnbsd.h @@ -0,0 +1,19 @@ +/* Sparc running NetBSD */ + +#ifndef hosts_sparcnbsd_h +#define hosts_sparcnbsd_h + +#include "hosts/nbsd.h" + +#define HOST_MACHINE_ARCH bfd_arch_sparc +#define HOST_BIG_ENDIAN_P + +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ + ((core_bfd)->tdata.trad_core_data->u.u_sig) +#define u_comm u_kproc.kp_proc.p_comm +#define TRAD_CORE_REGPOS(core_bfd) \ + ((bfd_vma)(core_bfd)->tdata.trad_core_data->u.u_kproc.kp_proc.p_md.md_tf) + +#define CORE_FPU_OFFSET (sizeof(struct trapframe)) + +#endif |