[cxx-abi-dev] comparing type_infos (was Re: Patch for throw/catch problems)

Mark Mitchell mark at codesourcery.com
Tue Aug 14 23:08:49 UTC 2001


Comments about people complaining are valid.  Users trump theory.

> And no, caching and prelinking don't help here since we're dealing
> with weak symbols.  Those can't be prelinked and wind up on the
> conflict list (which uses yet more runtime memory, btw) which gets
> resolved after the rest of prelinking is complete.
>

I think I meant something more ambitious; you create a table of
what values to relocate into what absolute memory locations,
and squirrel them away (along with hashes/timestamps of the DSOs
you were using).  Then, when you load the program, you check that
all the hashes match and that your DSOs ended up at the addresses
you expected and then just blast in your dynamic relocations
using the saved values without bothering to parse the relocation
sections or without looking up any symbols.

Would that work, in theory?

-- 
Mark Mitchell                mark at codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the cxx-abi-dev mailing list