aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts/sparcnbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/hosts/sparcnbsd.h')
-rw-r--r--bfd/hosts/sparcnbsd.h19
1 files changed, 19 insertions, 0 deletions
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