aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-06-29 01:17:58 +0000
committerSteve Chamberlain <sac@cygnus>1995-06-29 01:17:58 +0000
commit89665c8562dac7459029330dabb4e426cd1643a6 (patch)
treeba05dedc3eeb42b9c2cb71a26a7ab31b83a12276 /bfd/hosts
parent6f2d32120e50bd3bc24ac0c16f53875a35788314 (diff)
downloadgdb-89665c8562dac7459029330dabb4e426cd1643a6.zip
gdb-89665c8562dac7459029330dabb4e426cd1643a6.tar.gz
gdb-89665c8562dac7459029330dabb4e426cd1643a6.tar.bz2
Wed Jun 28 18:04:42 1995 Steve Chamberlain <sac@slash.cygnus.com>
* Makefile.in: versados.o is now conditionally built. * coffcode.h (add_data_entry): New function. (coff_write_object_contents): Clean up. Calculate data entries. * cofflink.c (_bfd_coff_generic_relocate_section): .reloc and .edata sections are IMAGE_BASED too. If there's a base_file then write out base information. * configure.host (i386-*-pe): New. * syms.c (coff_section_type): Only scan prefixes. * targets.c (bfd_target_vector): Versados is now conditionally built. * config/m68k-coff.mt: Build versados.o * hosts/i386pe.h: New file.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/.Sanitize1
-rw-r--r--bfd/hosts/i386pe.h20
2 files changed, 21 insertions, 0 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize
index 7425482..e466e1b 100644
--- a/bfd/hosts/.Sanitize
+++ b/bfd/hosts/.Sanitize
@@ -48,6 +48,7 @@ i386lynx.h
i386mach3.h
i386nbsd.h
i386osf1mk.h
+i386pe.h
i386sco.h
i386v.h
i386v4.h
diff --git a/bfd/hosts/i386pe.h b/bfd/hosts/i386pe.h
new file mode 100644
index 0000000..c4d8532
--- /dev/null
+++ b/bfd/hosts/i386pe.h
@@ -0,0 +1,20 @@
+#include <stddef.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <string.h>
+#include <stdlib.h>
+#include <sys/stat.h>
+#define FPRINTF_ALREADY_DECLARED
+
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+#define NO_FCNTL
+
+#include "fopen-bin.h"
+