Support small archive for pre AIX 4.3

This commit is contained in:
Tom Rix 2002-02-01 05:47:14 +00:00
parent ba323545dd
commit 3e36d993a9
4 changed files with 17 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2002-02-01 Tom Rix <trix@redhat.com>
* config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2002-02-01 Alan Modra <amodra@bigpond.net.au> 2002-02-01 Alan Modra <amodra@bigpond.net.au>
* Makefile.am: Run "make dep-am" * Makefile.am: Run "make dep-am"

View file

@ -790,6 +790,9 @@ case "${targ}" in
case "${targ}" in case "${targ}" in
*-*-aix4.[3456789]* | *-*-aix[56789]*) *-*-aix4.[3456789]* | *-*-aix[56789]*)
want64=true;; want64=true;;
*)
targ_cflags=-DSMALL_ARCHIVE;;
esac esac
;; ;;
#ifdef BFD64 #ifdef BFD64

View file

@ -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> 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
* or32.h: New file. * or32.h: New file.

View file

@ -606,18 +606,20 @@ struct xcoff_ar_hdr_big
`hdr' member has the same size and position in both formats. `hdr' member has the same size and position in both formats.
<bigaf> is the default format, return true even when xcoff_ardata is <bigaf> is the default format, return true even when xcoff_ardata is
NULL. */ NULL. */
#ifndef SMALL_ARCHIVE
/* Creates big archives by default */
#define xcoff_big_format_p(abfd) \ #define xcoff_big_format_p(abfd) \
((NULL != bfd_ardata (abfd) && NULL == xcoff_ardata (abfd)) || \ ((NULL != bfd_ardata (abfd) && NULL == xcoff_ardata (abfd)) || \
((NULL != bfd_ardata (abfd)) && \ ((NULL != bfd_ardata (abfd)) && \
(NULL != xcoff_ardata (abfd)) && \ (NULL != xcoff_ardata (abfd)) && \
(xcoff_ardata (abfd)->magic[1] == 'b'))) (xcoff_ardata (abfd)->magic[1] == 'b')))
#else
/* For testing old format * / /* Creates small archives by default. */
#undef xcoff_big_format_p
#define xcoff_big_format_p(abfd) \ #define xcoff_big_format_p(abfd) \
(((NULL != bfd_ardata (abfd)) && \ (((NULL != bfd_ardata (abfd)) && \
(NULL != xcoff_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 /* We store a copy of the xcoff_ar_file_hdr in the tdata field of the
artdata structure. Similar for the big archive. */ artdata structure. Similar for the big archive. */