From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: dje@watson.ibm.com (David Edelsohn) Cc: pooh@msu.ru, egcs@cygnus.com Subject: Re: egcs on AIX: native or gnu ld? Date: Sat, 18 Oct 1997 12:56:00 -0000 Message-id: <199710181927.MAA05506@atrus.synopsys.com> References: <9710172147.AA20954@rios1.watson.ibm.com> X-SW-Source: 1997-10/msg00827.html > 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.