This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: AIX 4.3 and collect2 (not a COFF file)
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: RE: AIX 4.3 and collect2 (not a COFF file)
- From: Andrey Slepuhin <pooh at msu dot net>
- Date: Wed, 28 Oct 1998 12:03:45 +0400 (MEST)
- Cc: egcs at cygnus dot com, Jeffrey Law <law at cygnus dot com>
- Organization: Moscow State University Network (MSUnet)
On 27-Oct-98 David Edelsohn wrote:
> There have been a number of reports about errors during linking on
> AIX 4.3: "... not a COFF file" (or "... not an import library" in gcc2).
> The version of libld.a support library to parse object modules and archive
> libraries shipped with AIX 4.3.0 could not handle the AIX 4.3 big format
> archives. AIX 4.3.1 shipped with a partial fix which provided correct
> header information masking some of the problems (but the "not an import
> library" error still might occur). The complete fix is shipping with AIX
> 4.3.2.
>
> In addition to this, I am updating collect2 so that it will obey
> the compiler mode when scanning object modules for static ctors/dtors.
> This is an important bug fix which should be included in egcs-1.1.1.
> Because collect2 relies on this library, EGCS essentially requires AIX
> 4.3.2 to operate correctly although it mostly works on AIX 4.3.1 depending
> on which libraries are referenced and other workarounds.
I have no access to any AIX 4.3.x machine (and we have no plans to
upgrade our 4.2.1 boxes), so if you will make appropriate changes
to collect2 it will be fine.
Andrey.
PS: FYI, I'm heavily using egcs-1.1 as a default compiler on AIX 4.2.1
both for C and C++ applications and it works pretty well. After
modifying libtool and changing egcs specs to always use run-time
linking (though generally it is not a good thing) I have most of
GNU tools built with shared libraries support (even such monsters as
GTK/GNOME seem to work without problems). There are still some old
C++ problems with shared libraries which cannot be fixed easy, but
I can live with them.