This is the mail archive of the
mailing list for the GCC project.
Re: AIX 4.3 and COLLECT_EXPORT_LIST
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: AIX 4.3 and COLLECT_EXPORT_LIST
- From: Joerg Faschingbauer <jfasch at hyperwave dot com>
- Date: Tue, 30 Nov 1999 09:52:05 +0100
- CC: gcc at gcc dot gnu dot org, mapo at hyperwave dot com, Andrey Slepuhin <pooh at msu dot ru>
- References: <email@example.com><199911291001.LAA34584@hwiw01.hyperwave.com><9911291956.AA37474@marc.watson.ibm.com>
>>>>> "David" == David Edelsohn <firstname.lastname@example.org> writes:
David> Scanning the resulting executable misses some dependencies because
David> AIX's linker (link editor / binder) garbage collects: unreferenced CSECTs
David> are omitted from the resulting executable/shared object. A preliminary
David> link phase to produce a scannable executable that has not referenced
David> ctors/dtors may not have retained all libraries and/or object files
David> containing necessary ctors/dtors that should be scanned for the final link
David> phase. You do not see this on your simple program, but it has caused
David> failures for others.
David> The correct way to solve this problem is by generating shared
David> libraries using the initfini support present in the AIX binder on releases
David> AIX 4.2 and above. I have a preliminary patch to make collect2 utilize
David> this functionality for AIX 4.3 and above. If you and others would like to
David> test it and help debug it, I would appreciate the assistance from people
David> who actually use libstdc++.
We do use it, and would appreciate your patch. However, we are
building only executables yet.