aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1992-10-09 01:39:06 +0000
committerKen Raeburn <raeburn@cygnus>1992-10-09 01:39:06 +0000
commit214f8f2392b9c23f589ca2346e30faff01d8e09f (patch)
tree3b1451d1fadee02d2a00c2d4529b10bd660783f6 /bfd/hosts
parentd047d16af719a72d659c032f7b62bf7b1476c3e5 (diff)
downloadgdb-214f8f2392b9c23f589ca2346e30faff01d8e09f.zip
gdb-214f8f2392b9c23f589ca2346e30faff01d8e09f.tar.gz
gdb-214f8f2392b9c23f589ca2346e30faff01d8e09f.tar.bz2
* aout-target.h (callback): Don't define this function if it won't be used.
* aoutx.h (some_aout_object_p): Restore old aout_data value if this type doesn't match. Don't lose if file sections have already been created. (set_arch_mach): Set reloc_entry_size. (slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data. * hosts/i386bsd.h: New file. * configure.in: Recognize i[34]86-*-bsd host. * aout-target.h (callback, write_object_contents): Delete unused variables. * aoutx.h (reloc_type_lookup): New function. * aout-target.h (MY_reloc_howto_type_lookup): Use it as default. * aoutf1.h (sunos4_reloc_type_lookup): Deleted. (MY_reloc_howto_type_lookup): Don't define it. * aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for OMAGIC files. (slurp_symbol_table): Use header byte order, not target byte order, for reading symbol data.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/.Sanitize1
-rw-r--r--bfd/hosts/i386bsd.h46
2 files changed, 47 insertions, 0 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize
index 39130f2..3956c65 100644
--- a/bfd/hosts/.Sanitize
+++ b/bfd/hosts/.Sanitize
@@ -38,6 +38,7 @@ hp300bsd.h
hp300.h
hppabsd.h
hppahpux.h
+i386bsd.h
i386linux.h
i386mach.h
i386v.h
diff --git a/bfd/hosts/i386bsd.h b/bfd/hosts/i386bsd.h
new file mode 100644
index 0000000..6f1d7d7
--- /dev/null
+++ b/bfd/hosts/i386bsd.h
@@ -0,0 +1,46 @@
+#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>
+
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+extern PTR EXFUN(malloc, (unsigned));
+extern PTR EXFUN(realloc, (PTR, unsigned));
+extern void EXFUN(free, (PTR));
+
+#define HAVE_STRERROR
+
+#define HOST_PAGE_SIZE NBPG
+#define HOST_SEGMENT_SIZE NBPG
+#define HOST_MACHINE_ARCH bfd_arch_i386
+#define HOST_TEXT_START_ADDR 0 /* By inspection */
+#define HOST_STACK_END_ADDR KERNBASE
+
+/* EXACT TYPES */
+typedef char int8e_type;
+typedef unsigned char uint8e_type;
+typedef short int16e_type;
+typedef unsigned short uint16e_type;
+typedef int int32e_type;
+typedef unsigned int uint32e_type;
+
+/* CORRECT SIZE OR GREATER */
+typedef char int8_type;
+typedef unsigned char uint8_type;
+typedef short int16_type;
+typedef unsigned short uint16_type;
+typedef int int32_type;
+typedef unsigned int uint32_type;
+#include "fopen-same.h"