This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]