From 343c1a964109a703b6f53d081d61fde6d91eddb5 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Wed, 17 Nov 1993 01:11:30 +0000 Subject: * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc. * m68klynx.c: Define core file macros. * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all non-architecture specific stuff into lynx.h. --- bfd/hosts/.Sanitize | 1 + bfd/hosts/i386lynx.h | 29 +---------------------------- bfd/hosts/lynx.h | 36 ++++++++++++++++++++++++++++++++++++ bfd/hosts/m68klynx.h | 27 +-------------------------- 4 files changed, 39 insertions(+), 54 deletions(-) create mode 100644 bfd/hosts/lynx.h (limited to 'bfd/hosts') diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize index c4a6652..25a425e 100644 --- a/bfd/hosts/.Sanitize +++ b/bfd/hosts/.Sanitize @@ -53,6 +53,7 @@ i386v.h i386v4.h irix3.h irix4.h +lynx.h m68klynx.h miniframe.h mipsbsd.h diff --git a/bfd/hosts/i386lynx.h b/bfd/hosts/i386lynx.h index 2c93f50..b5be30c 100644 --- a/bfd/hosts/i386lynx.h +++ b/bfd/hosts/i386lynx.h @@ -3,35 +3,8 @@ #ifndef hosts_i386lynx_h #define hosts_i386lynx_h -#include -#include -#include -#include -#include -#include +#include "hosts/lynx.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define HOST_PAGE_SIZE NBPG #define HOST_MACHINE_ARCH bfd_arch_i386 -#define HOST_TEXT_START_ADDR USRTEXT - -#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 */ diff --git a/bfd/hosts/lynx.h b/bfd/hosts/lynx.h new file mode 100644 index 0000000..737c9bd --- /dev/null +++ b/bfd/hosts/lynx.h @@ -0,0 +1,36 @@ +/* Architecture independant LynxOS host support for 2.2 */ + +#ifndef hosts_lynx_h +#define hosts_lynx_h + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define HOST_PAGE_SIZE NBPG +#define HOST_TEXT_START_ADDR USRTEXT + +#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_lynx_h */ diff --git a/bfd/hosts/m68klynx.h b/bfd/hosts/m68klynx.h index 394289a..2d370da 100644 --- a/bfd/hosts/m68klynx.h +++ b/bfd/hosts/m68klynx.h @@ -3,33 +3,8 @@ #ifndef hosts_m68klynx_H #define hosts_m68klynx_H -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "hosts/lynx.h" -#ifndef O_ACCMODE -#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) -#endif - -#define SEEK_SET 0 -#define SEEK_CUR 1 - -#define HOST_PAGE_SIZE NBPG #define HOST_MACHINE_ARCH bfd_arch_m68k -#define HOST_TEXT_START_ADDR USRTEXT - -#define u_comm u_kproc.kp_proc.p_comm - -#include "fopen-same.h" - -/* Lynx has calloc, but no cfree, and gprof uses it. */ - -#define cfree free #endif /* hosts_m68klynx_H */ -- cgit v1.1