From: Stan Shebs Date: Fri, 29 Oct 1993 02:03:32 +0000 (+0000) Subject: Minor changes, plus definitions for Sparc Lynx host. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20f951757e0be7a93b5bc58143472533472c5ede;p=binutils-gdb.git Minor changes, plus definitions for Sparc Lynx host. --- diff --git a/bfd/hosts/i386lynx.h b/bfd/hosts/i386lynx.h index 63d95798a82..2c93f504383 100644 --- a/bfd/hosts/i386lynx.h +++ b/bfd/hosts/i386lynx.h @@ -1,4 +1,4 @@ -/* Intel 386 running Lynx OS */ +/* Intel 386 running LynxOS */ #ifndef hosts_i386lynx_h #define hosts_i386lynx_h @@ -27,10 +27,11 @@ #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 */ diff --git a/bfd/hosts/m68klynx.h b/bfd/hosts/m68klynx.h index 49445123e8c..394289a05ff 100644 --- a/bfd/hosts/m68klynx.h +++ b/bfd/hosts/m68klynx.h @@ -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 #include #include @@ -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 index 00000000000..78e6ac889f6 --- /dev/null +++ b/bfd/hosts/sparclynx.h @@ -0,0 +1,35 @@ +/* Sparc running LynxOS */ + +#ifndef hosts_sparclynx_h +#define hosts_sparclynx_h + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#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 */