This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A completely different approach to EH runtime
- To: Zack Weinberg <zackw at Stanford dot EDU>
- Subject: Re: A completely different approach to EH runtime
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 23 Feb 2001 00:19:16 -0800
- Cc: David Edelsohn <dje at watson dot ibm dot com>, Hidvegi <hzoli at austin dot ibm dot com>, gcc at gcc dot gnu dot org
- References: <hzoli@austin.ibm.com> <200102211757.MAA29608@mal-ach.watson.ibm.com> <20010221111515.F11424@wolery.stanford.edu>
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~