* configure.host: Recognize aix4 explicitly.
authorJeff Law <law@redhat.com>
Tue, 8 Aug 1995 17:31:52 +0000 (17:31 +0000)
committerJeff Law <law@redhat.com>
Tue, 8 Aug 1995 17:31:52 +0000 (17:31 +0000)
        * rs6000-core.c (CORE_DATA_SIZE_FIELD): New macro to get a the size
        of a core dump's data section.  Provide alternate definition for aix4.
        (SAVE_FIELD): Similarly for save state field (register info).
        (STACK_END_ADDR): Provide definition suitable for aix4.
        * config/{aix4.mh,aix4.mt}: New configuration files.
        * hosts/aix4.h: Likewise.

Mike's aix4 changes, slightly modified.

bfd/ChangeLog
bfd/hosts/.Sanitize
bfd/hosts/aix4.h [new file with mode: 0644]

index 177eb66..cc218ce 100644 (file)
@@ -1,3 +1,13 @@
+Tue Aug  8 10:15:43 1995  Jeffrey A. Law  <law@rtl.cygnus.com>
+
+       * configure.host: Recognize aix4 explicitly.
+       * rs6000-core.c (CORE_DATA_SIZE_FIELD): New macro to get a the size
+       of a core dump's data section.  Provide alternate definition for aix4.
+       (SAVE_FIELD): Similarly for save state field (register info).
+       (STACK_END_ADDR): Provide definition suitable for aix4.
+       * config/{aix4.mh,aix4.mt}: New configuration files.
+       * hosts/aix4.h: Likewise.
+
 Mon Aug  7 23:03:21 1995  Ian Lance Taylor  <ian@cygnus.com>
 
        * som.c (som_bfd_copy_private_symbol_data): Cast initializations
index a1eee13..0932b43 100644 (file)
@@ -24,6 +24,7 @@ Do-first:
 
 Things-to-keep:
 
+aix4.h
 alphaosf.h
 apollo68.h
 apollov68.h
diff --git a/bfd/hosts/aix4.h b/bfd/hosts/aix4.h
new file mode 100644 (file)
index 0000000..07bff7d
--- /dev/null
@@ -0,0 +1,23 @@
+/* This file is *really* for an Power, PowerPC running AIX 4... */
+
+#include <stddef.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <string.h>
+#include <sys/file.h>
+#include <stdlib.h>            /* for malloc() */
+
+/* Defining this variable turns on AIX core file and archive support.  */
+#define HOST_AIX
+
+#ifndef        O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+#include "fopen-same.h"