This is the mail archive of the
mailing list for the GCC project.
Re: Problem with shared libraries, exceptions, and global constructors
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: Richard Henderson <rth at redhat dot com>, Bernd Schmidt <bernds at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 18 Aug 2003 14:39:56 -0400
- Subject: Re: Problem with shared libraries, exceptions, and global constructors
>>>>> Gabriel Dos Reis writes:
Gabriel> Richard Henderson <firstname.lastname@example.org> writes:
Gabriel> | On Mon, Aug 18, 2003 at 06:21:24PM +0100, Bernd Schmidt wrote:
Gabriel> | > I've been staring at this for a while, and I can't see a good way to fix
Gabriel> | > this. Suggestions?
Gabriel> | Build libbug1 correctly. That is, display its dependency on libbug2:
Gabriel> | g++ -fpic -shared bug2.cc -o libbug2.so
Gabriel> | g++ -fpic -shared bug1.cc ./libbug2.so -o libbug1.so
Gabriel> | That will change the DAG such that initialization happens in the
Gabriel> | proper order.
Gabriel> Pardon the question: It is a feature? I'm pretty sure I'm seen many
Gabriel> bug reports where the symptoms described by Bernd were reported.
Gabriel> What I'm saying is that, in the small your advice it quite
Gabriel> straightforward to follow. For a large project however, I think that
Gabriel> quickly gets out of hand. Isn't there anything that can be done?
Gabriel> -- Gaby