From: Tom Rix Date: Fri, 1 Feb 2002 05:47:14 +0000 (+0000) Subject: Support small archive for pre AIX 4.3 X-Git-Tag: binutils-2_12-branchpoint~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e36d993a97f356f659493d539c089594cd053c1;p=external%2Fbinutils.git Support small archive for pre AIX 4.3 --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a8f5c2a..3df653f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-02-01 Tom Rix + + * config.bfd: Conditionally support for pre AIX 4.3. + 2002-02-01 Alan Modra * Makefile.am: Run "make dep-am" diff --git a/bfd/config.bfd b/bfd/config.bfd index f89e6e0..51962dc 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -790,6 +790,9 @@ case "${targ}" in case "${targ}" in *-*-aix4.[3456789]* | *-*-aix[56789]*) want64=true;; + + *) + targ_cflags=-DSMALL_ARCHIVE;; esac ;; #ifdef BFD64 diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog index 7aced13..79e8e18 100644 --- a/include/coff/ChangeLog +++ b/include/coff/ChangeLog @@ -1,3 +1,7 @@ +2002-02-01 Tom Rix + + * xcoff.h: Conditionally support for pre AIX 4.3. + 2002-01-31 Ivan Guzvinec * or32.h: New file. diff --git a/include/coff/xcoff.h b/include/coff/xcoff.h index 98aa047..0bb9d6c 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. 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. */