ia64 vtable entries (was: C implementations of the C++ ABI)

Richard Henderson rth at cygnus.com
Thu Mar 2 19:01:23 UTC 2000


On Wed, Mar 01, 2000 at 04:50:24PM -0800, Jim Dehnert wrote:
> OK, now I understand your issue, at least.  But the vtable might
> actually benefit as much or more from lazy binding.

An interesting thought.  I suppose it might could even be made to work,
though you'd have to do odd things like put entries in .rel.IA-64.pltoff
that aren't against .IA-64.pltoff.  Or some other variant that gets it
covered by the DT_JMPREL array. 

You'd also need a minimal plt entry for each vtable entry.  That's
16 bytes a pop, and large dynamicly linked C++ applications might
start filling up the 1M(?) entry limit on minplt entries.  That limit
could be extended by changing the linker to use a different minplt
format for entries farther than a simple branch allows...

Well, perhaps this'll convince people to use STV_INTERNAL and the like.


r~




More information about the cxx-abi-dev mailing list