vtable pseudo ops

Richard Henderson rth@redhat.com
Mon Mar 12 17:17:00 GMT 2001


On Mon, Mar 12, 2001 at 01:56:55PM +0100, Bo Thorsen wrote:
> And a small thing: What should the name of the sections be? I'm currently
> using .vte and .vti but this does not say as much of the contents as
> .vtable.entry and .vtable.inherit or .vtable_e and .vtable_i.

Probably .gnu.vtable_[ei].

> +  /* Special sections to handle c++ vtable special relocations.  */
> +  { ".vti",	SHT_PROGBITS,	0			},
> +  { ".vte",	SHT_PROGBITS,	0			},

You should invent new section types for these, so that one day we
can have a linker that doesn't depend on magic section names.
I suggest putting them near the existing SHT_GNU_verdef types in
include/elf/common.h.


r~



More information about the Binutils mailing list