AIX vtable issues
Mark Mitchell
mark@codesourcery.com
Tue Feb 6 09:31:00 GMT 2001
>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:
David> I assume that vtables no longer have "_vt." in their name, so this code is
David> not being invoked. This code needs to check for whatever additional
David> substring designates a virtual function table.
After I sent that mail, I did find that code, and modify it
appropriately.
I verified that it changed the resulting assembler output. It now
looks like:
.toc
LC..0:
.tc _ZTT4MostIiE[TC],_ZTT4MostIiE
.csect _template41.rw_ii[RW],3
.align 2
_ZTT4MostIiE:
.long _ZTV4MostIiE[RW]+12
.long _ZTC4MostIiE0_2D1IiE[RW]+12
.long _ZTC4MostIiE4_2D2IiE[RW]+12
.long _ZTV4MostIiE[RW]+24
.space 4
.align 2
(Note that the `[RW]' is now missing on the `.tc' line.
But, the same problem still occurs. Oh, I see why, now: inside the
definition of _ZTT4MostIiE we still have section references to various
other vtables. OK, I'll try to track that down.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list