Types Table pointers

Narayanaswamy, Ravi ravi.narayanaswamy at intel.com
Thu Mar 8 23:54:06 UTC 2001


According to the ABI, the pointer to the typeinfo in the Types Tables are
GP-relative offset.  The
typeinfo is 16bytes (>8 bytes go in data) and is global (globals by default
go in data).  Should they 
be put in sdata or should we make the typeinfo pointer be segrel.

Below is the code Intel's compiler is generating. Can someone tell me what
should be corrected :

Assembly code:
        .section .text
        //Type Table
        data8 @gprel(_ZTIi)
        .
        .
        .section .gnu.linkonce.d._ZTIi, "wa", "progbits"
        .align 16
        .global _ZTIi#
_ZTIi:
        .weak _ZTIi#
        data8.ua _ZTVN10__cxxabiv123__fundamental_type_infoE# + 0x00000010
        data8.ua __STRING$0#    
        .global _ZTVN10__cxxabiv123__fundamental_type_infoE#

Thanks
Ravi
Intel Corporation





More information about the cxx-abi-dev mailing list