This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs on AIX: native or gnu ld?
- To: dje at watson dot ibm dot com (David Edelsohn)
- Subject: Re: egcs on AIX: native or gnu ld?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Sat, 18 Oct 97 12:27:56 PDT
- Cc: pooh at msu dot ru, egcs at cygnus dot com
> Most of your questions deal with G++ implementation issues which I
> cannot address. I really do not know how -frepo works or about additional
> files it creates and how linkers other than GNU ld are suppose to handle
> them.
-frepo is handled by the collect2 program, which then calls either the
GNU or the "native" linker.
> It sounds like at least some of the features of G++ are relying
> upon GNU ld or SVR4/ELF-like linkers.
No, the collect program handles the constructor problems on other systems.
See the g++ FAQ for a discussion (http://www.cygnus.com/misc/g++FAQ_toc.html).
It may not be able to deal with global constructors in shared libraries,
though.
> | 5) What about including support of shared libraries with native ld to the
> | future snapshots of egcs?
g++ never worked with only a native ld on non-ELF systems. Something
has to resolve the constructors.
If, for a particular platform other than ELF, there is a way to make
shared libraries work with the native linker, and someone wants to
contribute it, fine, but it shouldn't be a priority when the workaround
"use the GNU linker" exists.