Version 3.4.3: ix86-linux -> powerpc-aix4.2 Cross-Compiler

David Edelsohn dje@watson.ibm.com
Wed Jan 19 20:51:00 GMT 2005


>>>>> 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.

	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

David



More information about the Gcc mailing list