vtable emission, COMDAT, and ELF

Matt Austern austern at isolde.engr.sgi.com
Thu Jul 15 00:15:59 UTC 1999


We're proposing to use COMDAT sections to remove duplicate vtables,
and possibly for other purposes.  This will require us to use an
awful lot of sections.

One of the people here has pointed out a possible problem with that:
the ELF specification allows only 2^16 sections, and in reality that
probably means 2^16/4 = 16384 data sections.  We could be in danger
of running out.

I know that some of you are already using COMDAT sections this
way.  Have you found this a problem, and, if so, how have you
dealt with it?

			--Matt




More information about the cxx-abi-dev mailing list