egcs on AIX: native or gnu ld?
Joe Buck
jbuck@synopsys.com
Sat Oct 18 12:56:00 GMT 1997
> 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.
More information about the Gcc
mailing list