From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Platform:Itanium C++ ABI" |
|---|
| claim | "Itanium-ABI symbol names start with _Z (__Z on Mach-O); the prefixes _ZTV, _ZTI, _ZTS, _ZTT, _ZTC, _ZTh, _ZTv, _ZTc, _ZGV, _ZGR, _ZTW, _ZTH mark compiler-generated objects (vtables, RTTI, VTTs, construction vtables, thunks, guard variables, reference temporaries, thread_local helpers). A bare _Z... prefix is shared with other languages: Rust's legacy mangling uses _ZN<path>17h<16 hex digits>E (Unverified here, from the Rust RFC 2603 text), so _Z alone does not prove C++." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Itanium C++ ABI" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "symbol names" |
|---|
| indicator | "_Z, _ZTV, _ZTI, _ZTS, _ZTT, _ZTC, _ZTh, _ZTv, _ZTc, _ZGV, _ZGR, _ZTW, _ZTH" |
|---|
| table | | prefix | "_ZTV" |
|---|
| meaning | "vtable for" |
|---|
|
| prefix | "_ZTI" |
|---|
| meaning | "typeinfo for" |
|---|
|
| prefix | "_ZTS" |
|---|
| meaning | "typeinfo name for" |
|---|
|
| prefix | "_ZTT" |
|---|
| meaning | "VTT for" |
|---|
|
| prefix | "_ZTC" |
|---|
| meaning | "construction vtable for <second>-in-<first>" |
|---|
|
| prefix | "_ZTh" |
|---|
| meaning | "non-virtual thunk to" |
|---|
|
| prefix | "_ZTv" |
|---|
| meaning | "virtual thunk to" |
|---|
|
| prefix | "_ZTc" |
|---|
| meaning | "covariant return thunk to" |
|---|
|
| prefix | "_ZGV" |
|---|
| meaning | "guard variable for" |
|---|
|
| prefix | "_ZGR" |
|---|
| meaning | "reference temporary for" |
|---|
|
| prefix | "_ZTW" |
|---|
| meaning | "thread-local wrapper routine for" |
|---|
|
| prefix | "_ZTH" |
|---|
| meaning | "thread-local initialization routine for" |
|---|
|
|
|---|
| test_vectors | | input | "_ZTV11ImageLoader" |
|---|
| expected | "vtable for ImageLoader" |
|---|
|
| input | "_ZTISt12length_error" |
|---|
| expected | "typeinfo for std::length_error" |
|---|
|
| input | "_ZTSSt11logic_error" |
|---|
| expected | "typeinfo name for std::logic_error" |
|---|
|
| input | "_ZTC14SSDatabaseImpl0_N8Security10CssmClient6DbImplE" |
|---|
| expected | "construction vtable for Security::CssmClient::DbImpl-in-SSDatabaseImpl" |
|---|
|
| input | "_ZTv0_n12_NSt9strstreamD0Ev" |
|---|
| expected | "virtual thunk to std::strstream::~strstream()" |
|---|
|
| input | "_ZGVZN5clang22getClangRepositoryPathEvE13SVNRepository" |
|---|
| expected | "guard variable for clang::getClangRepositoryPath()::SVNRepository" |
|---|
|
| input | "_ZGRZN1N1gEvE1a" |
|---|
| expected | "reference temporary for N::g()::a" |
|---|
|
| input | "_ZTW1x" |
|---|
| expected | "thread-local wrapper routine for x" |
|---|
|
| input | "_ZTHN3fooE" |
|---|
| expected | "thread-local initialization routine for foo" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "parseSpecialName: TV, TT, TI, TS, Tc, TC, TW, TH, T<call-offset>, GV, GR" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "4bd435d59f89ded8e537e5c6e0b560ad89518c3f" |
|---|
| path | "libcxxabi/src/demangle/ItaniumDemangle.h" |
|---|
| lines | "5551-5690" |
|---|
|
| type | "source" |
|---|
| detail | "the test vectors quoted" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "4bd435d59f89ded8e537e5c6e0b560ad89518c3f" |
|---|
| path | "libcxxabi/test/DemangleTestCases.inc" |
|---|
| lines | "533, 550, 554, 26730, 29725, 29726, 29756, 29768, 29769" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Special name prefixes" |
|---|
| topic | "Platform:Itanium C++ ABI/Name mangling" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T21:52:51.369Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:52:20.457Z" |
|---|
| result | "confirmed" |
|---|
| method | "Re-checked the correction against llvm ItaniumDemangle.h at the cited commit (parseSpecialName handles TV, TT, TI, TS, Tc, TC, TW, TH, T<offset>, GV, GR); the added Rust legacy-mangling caveat (_ZN...17h<16 hex>E) is the known legacy scheme and stays marked Unverified in the claim." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T03:42:37.446Z" |
|---|
| summary | "Name what shares the indicator: Rust's legacy symbol mangling also starts _ZN and ends 17h<16 hex digits>E, so _Z alone does not mean C++." |
|---|
| changed | |
|---|
|
|
|---|