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] | |
Understood. I didn't know that.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.
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: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
frexp.o: /usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/nm: frexp.o: no symbols
David
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |