This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: BFD configuration for AIX
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: BFD configuration for AIX
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Wed, 29 Aug 2001 13:08:46 +0930
- Cc: Tom Rix <trix at redhat dot com>, binutils at sourceware dot cygnus dot com
- References: <amodra@bigpond.net.au> <200108290203.WAA23020@makai.watson.ibm.com>
On Tue, Aug 28, 2001 at 10:03:26PM -0400, David Edelsohn wrote:
> BeOS does not have a 64-bit mode, so it never should accept
> coff64. AIX prior to 4.3 does not have a 64-bit mode.
>
> config.bfd should test for
>
> rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
>
> and
>
> rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
>
> as is done for GCC in config.gcc.
OK, I'm committing the following
bfd/ChangeLog
* targmatch.sed: Delete case statements.
* config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
aix4.3 and above.
--
Alan Modra
Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.64
diff -u -p -r1.64 config.bfd
--- config.bfd 2001/08/29 01:33:51 1.64
+++ config.bfd 2001/08/29 03:32:39
@@ -733,6 +733,10 @@ case "${targ}" in
powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
targ_defvec=rs6000coff_vec
targ64_selvecs="rs6000coff64_vec"
+ case "${targ}" in
+ *-*-aix4.[3456789]* | *-*-aix[56789]*)
+ want64=true;;
+ esac
;;
#ifdef BFD64
powerpc64-*-aix*)
Index: targmatch.sed
===================================================================
RCS file: /cvs/src/src/bfd/targmatch.sed,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 targmatch.sed
--- targmatch.sed 1999/05/03 07:28:58 1.1.1.1
+++ targmatch.sed 2001/08/29 03:32:39
@@ -1,5 +1,6 @@
1,/START OF targmatch.h/ d
/END OF targmatch.h/,$ d
+/^[ ]*case/,/^[ ]*esac/ d
s/^#if/KEEP #if/
s/^#endif/KEEP #endif/
s/^[ ]*#.*$//