From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Itanium C++ ABI" |
|---|
| claim | "Every Itanium-ABI type_info object (std::type_info, and __class_type_info for a class without bases) is two pointers: a vptr to the address point (vtable + 2 pointers) of its __cxxabiv1 type_info class vtable, and a pointer to the NUL-terminated mangled type name without _Z (the _ZTS string). 16 bytes on LP64 and LLP64, 8 on ILP32." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Itanium C++ ABI" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "__class_type_info" |
|---|
| size | "0x10" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "const void *" |
|---|
| name | "vptr" |
|---|
| notes | "_ZTVN10__cxxabiv117__class_type_infoE + 2 pointers (si: ..120__si_class_type_infoE, vmi: ..121__vmi_class_type_infoE, pointer: ..119__pointer_type_infoE); ILP32: offset 0, 4 bytes" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "const char *" |
|---|
| name | "__type_name" |
|---|
| notes | "_ZTS string, e.g. "St9exception"; ILP32: offset 4" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "__class_type_info derives from std::type_info (vptr + __type_name) and adds no data members" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "4bd435d59f89ded8e537e5c6e0b560ad89518c3f" |
|---|
| path | "libcxxabi/src/private_typeinfo.h" |
|---|
| lines | "134-152" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "MinGW-w64 GCC x86-64 libstdc++-6.dll: _ZTISt9exception = {_ZTVN10__cxxabiv117__class_type_infoE+16, _ZTSSt9exception -> "St9exception"}; 291 type_info objects found this way matched their _ZTI export names" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "__class_type_info" |
|---|
| topic | "Platform:Itanium C++ ABI/RTTI and vtables" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T21:50:35.625Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:35:28.760Z" |
|---|
| result | "partial" |
|---|
| method | "Read libcxxabi private_typeinfo.h at the cited commit: __class_type_info derives from __shim_type_info (a std::type_info) and adds no data members, so two pointers as stated. But the header does not show the type_info members themselves, and clang's AppleARM64CXXABI comment says 'ARM64 libraries are prepared for non-unique RTTI' (shouldRTTIBeUnique false): there the name pointer can carry non-unique flag bits, which the fact does not mention; not verified in this session." |
|---|
| notes | "Suggest scope note: on Apple ARM64 (and with libstdc++ names starting with '*') the __type_name pointer is not a plain _ZTS string pointer; source for the exact bit not read here." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:40:31.113Z" |
|---|
| summary | "Set byte order native: in-memory RTTI object of one process." |
|---|
| changed | |
|---|
|
|
|---|