Minor changes, plus definitions for Sparc Lynx host.
authorStan Shebs <shebs@codesourcery.com>
Fri, 29 Oct 1993 02:03:32 +0000 (02:03 +0000)
committerStan Shebs <shebs@codesourcery.com>
Fri, 29 Oct 1993 02:03:32 +0000 (02:03 +0000)
bfd/hosts/i386lynx.h
bfd/hosts/m68klynx.h
bfd/hosts/sparclynx.h [new file with mode: 0644]

index 63d95798a824e3d0d32a255fcbafa8b2ddcfa2a5..2c93f504383f1abf67c6dfd64538dc165ed1dda7 100644 (file)
@@ -1,4 +1,4 @@
-/* Intel 386 running Lynx OS */
+/* Intel 386 running LynxOS */
 
 #ifndef hosts_i386lynx_h
 #define hosts_i386lynx_h
 #define HOST_LYNX
 
 #include "fopen-same.h"
+
 #undef I386                    /* Lynx defines this for some reason */
 
 /* Lynx has calloc, but no cfree, and gprof uses it. */
 
 #define cfree free
 
-#endif         /* hosts_i386lynx_h */
+#endif /* hosts_i386lynx_h */
index 49445123e8c9073466b496393c7d9bc37419582a..394289a05ff4abd21fce2ab272ffc96072694ca6 100644 (file)
@@ -1,6 +1,8 @@
-/* Motorola 680x0 running any BSD Unix */
+/* Motorola 680x0 running LynxOS */
+
+#ifndef hosts_m68klynx_H
+#define hosts_m68klynx_H
 
-#ifndef hosts_m68kbsd_H
 #include <fcntl.h>
 #include <errno.h>
 #include <stdio.h>
@@ -25,5 +27,9 @@
 #define u_comm u_kproc.kp_proc.p_comm
 
 #include "fopen-same.h"
-#define hosts_m68kbsd_H
-#endif
+
+/* Lynx has calloc, but no cfree, and gprof uses it. */
+
+#define cfree free
+
+#endif /* hosts_m68klynx_H */
diff --git a/bfd/hosts/sparclynx.h b/bfd/hosts/sparclynx.h
new file mode 100644 (file)
index 0000000..78e6ac8
--- /dev/null
@@ -0,0 +1,35 @@
+/* Sparc running LynxOS */
+
+#ifndef hosts_sparclynx_h
+#define hosts_sparclynx_h
+
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <string.h>
+
+#include <sys/conf.h>
+#include <sys/kernel.h>
+#include <sys/mem.h>
+#include <sys/signal.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/itimer.h>
+#include <sys/file.h>
+#include <sys/proc.h>
+
+#define        HOST_PAGE_SIZE          NBPG
+#define        HOST_MACHINE_ARCH       bfd_arch_sparc
+#define        HOST_TEXT_START_ADDR    USRTEXT
+
+#define HOST_LYNX
+
+#include "fopen-same.h"
+
+/* Lynx has calloc, but no cfree, and gprof uses it. */
+
+#define cfree free
+
+#endif /* hosts_sparclynx_h */