Version 3.4.3: ix86-linux -> powerpc-aix4.2 Cross-Compiler
Scott Dudley
scott@telesoft.com
Wed Jan 19 21:15:00 GMT 2005
David Edelsohn wrote:
>>>>>>Scott Dudley writes:
>>>>>>
>>>>>>
>
>Scott> That's it David. On this AIX system, libc.a is an archive and not a
>Scott> shared library. Why then is nm attempting to examine the file? Did I
>Scott> fail to use a particular flag when building binutils?
>
> First, you misunderstand AIX. On AIX shared libraries *are*
>archives. Shared libraries are archives of shared objects and non-shared
>objects. If you copied libc.a from AIX, it is a shared library.
>
>
Understood. I didn't know that.
> Second, collect2.c reverts to scanning libraries with "nm" when
>cross-compiling:
>
>#ifdef CROSS_COMPILE
>#undef OBJECT_FORMAT_COFF
>#undef MD_EXEC_PREFIX
>#undef REAL_LD_FILE_NAME
>#undef REAL_NM_FILE_NAME
>#undef REAL_STRIP_FILE_NAME
>#endif
>
>
What then must I do to get this cross toolchain to work? The target nm
command doesn't understand the file format of libc.a:
/root # /usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/nm
/usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/lib/libc.a
frexp.o:
/usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/nm: frexp.o: no symbols
...
ptrgl_64_64.o:
/usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/nm: ptrgl_64_64.o: no
symbols
/usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/nm: : File format not
recognized
Thanks David.
>David
>
>
>
--
Regards,
Scott Dudley
More information about the Gcc
mailing list