A completely different approach to EH runtime

Fergus Henderson fjh@cs.mu.oz.au
Wed Feb 21 18:34:00 GMT 2001


On 21-Feb-2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> 
> It appears to me that the only problem right now is that the DWARF-2
> EH table (objects, in frame-dwarf2.c) is currently static.  Couldn't
> we just make it global, so that ELF symbol-binding semantics resolves
> it to a single symbol globally?

That sounds like a nice solution, if it works.

But I'm not convinced that it will work in all cases.

In particular if you have a main program that statically links in
libgcc.a and a shared library that statically links in libgcc.a,
and the shared library is dlopen()ed from the main program,
then you can get two copies, I'm pretty sure.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.



More information about the Gcc mailing list