I do not think there is an easy way. If you create two AIX archives, one 32-bit and one 64-bit, follow these steps:
$ cat a.c
int foo (void) { return 42; }
$ xlc -q32 a.c -c -o a32.o
$ xlc -q64 a.c -c -o a64.o
$ ar -X32 cr a32.a a32.o
$ ar -X64 cr a64.a a64.o
you get archives that are not in a readable format using linux ar:
$ file a32.a a64.a
a32.a: archive (big format)
a64.a: archive (big format)
$ ar t a32.a
ar: a32.a: File format not recognized
$ ar t a64.a
ar: a64.a: File format not recognized
I tried to use stringsto see that there was something obvious in the archives, but nothing was found. Your remaining option is to create a binutils package designed for AIX (load binutils, configure with the option --target=powerpc-ibm-aix5.3, run, makeand voilà: you have a tool called powerpc-ibm-aix5.3-arsomewhere in this build tree).
source
share