A completely different approach to EH runtime

Richard Henderson rth@redhat.com
Fri Feb 23 00:19:00 GMT 2001


On Wed, Feb 21, 2001 at 11:15:15AM -0800, Zack Weinberg wrote:
> Hm, the whole problem is that there has to be exactly one copy of the
> global data in _eh.o and frame.o.

Which, incidentally, can be solved *correctly* with an ia64-like
PT_IA_64_UNWIND program header solution, plus some coziness with
ld.so.  Not sure what to do about non-elf systems or systems not
using an appropriately new version of gld.

But lets do consider this before bodging anything up.

> Could we bodge up something with unique weak symbols so that
> (at least on some platforms) there'd be only one copy of the
> global frame data no matter how many times the library got
> dragged in?

No.  Weak symbols don't buy you anything over strong symbols.
All the problems arrise when symbols aren't cross-resolved period.


r~



More information about the Gcc mailing list