summaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2002-02-01 05:47:14 +0000
committerTom Rix <trix@redhat.com>2002-02-01 05:47:14 +0000
commit14e908db3233672aab5fd60418441085dce675ef (patch)
tree1a40bf040cdc6d6dc59ebb8cdf63f5e563fcf548 /include/coff
parent72885c413c4ee7ce6199f4e0e73c5bad13774e90 (diff)
downloadgdb-14e908db3233672aab5fd60418441085dce675ef.tar.gz
Support small archive for pre AIX 4.3
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog4
-rw-r--r--include/coff/xcoff.h10
2 files changed, 10 insertions, 4 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index 7aced139053..79e8e184ce0 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,7 @@
+2002-02-01 Tom Rix <trix@redhat.com>
+
+ * xcoff.h: Conditionally support <aiaff> for pre AIX 4.3.
+
2002-01-31 Ivan Guzvinec <ivang@opencores.org>
* or32.h: New file.
diff --git a/include/coff/xcoff.h b/include/coff/xcoff.h
index 98aa047b3c6..0bb9d6c1e48 100644
--- a/include/coff/xcoff.h
+++ b/include/coff/xcoff.h
@@ -606,18 +606,20 @@ struct xcoff_ar_hdr_big
`hdr' member has the same size and position in both formats.
<bigaf> is the default format, return true even when xcoff_ardata is
NULL. */
+#ifndef SMALL_ARCHIVE
+/* Creates big archives by default */
#define xcoff_big_format_p(abfd) \
((NULL != bfd_ardata (abfd) && NULL == xcoff_ardata (abfd)) || \
((NULL != bfd_ardata (abfd)) && \
(NULL != xcoff_ardata (abfd)) && \
(xcoff_ardata (abfd)->magic[1] == 'b')))
-
-/* For testing old format * /
-#undef xcoff_big_format_p
+#else
+/* Creates small archives by default. */
#define xcoff_big_format_p(abfd) \
(((NULL != bfd_ardata (abfd)) && \
(NULL != xcoff_ardata (abfd)) && \
- (xcoff_ardata (abfd)->magic[1] == 'b'))) / **/
+ (xcoff_ardata (abfd)->magic[1] == 'b')))
+#endif
/* We store a copy of the xcoff_ar_file_hdr in the tdata field of the
artdata structure. Similar for the big archive. */