This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A completely different approach to EH runtime


On Fri, Feb 23, 2001 at 01:53:25PM -0800, Zack Weinberg wrote:
> Anyhow, it seems the "just make it a global" idea doesn't work.  But
> how about this modification: Put a global symbol _in the executable_
> (via crtbegin.o, since we don't control crt1.o) which the libgcc
> routines look for.  Since it's just one pointer, no harm is done by
> including it in every executable, whether we know we need it or not.
> Hm, actually, we might need that and a mutex.  I don't know how we
> make register_frame_info be thread safe.  Still, it's not a huge
> amount of memory; 16 bytes or so.
> 
> Except that there are funnies with whether or not symbols in the
> executable are visible to dynamically loaded objects.  Drat.


And on top of that, don't we support exceptions in g++-compiled shared
objects dynamically loaded by non-gcc-compiled binaries?  Then they
wouldn't have your magic symbol in crtbegin.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]