1# Define the same version as the libsupc++ from gcc 4.2.1 so that we can use 2# libcxxrt as a drop-in replacement. 3 4CXXABI_1.3 { 5 6 global: 7 8 # ABI functions with C linkage 9 __cxa_allocate_exception; 10 __cxa_bad_cast; 11 __cxa_bad_typeid; 12 __cxa_begin_catch; 13 __cxa_call_unexpected; 14 __cxa_current_exception_type; 15 __cxa_demangle; 16 __cxa_end_catch; 17 __cxa_end_cleanup; 18 __cxa_free_exception; 19 __cxa_get_globals; 20 __cxa_get_globals_fast; 21 __cxa_guard_abort; 22 __cxa_guard_acquire; 23 __cxa_guard_release; 24 __cxa_pure_virtual; 25 __cxa_rethrow; 26 __cxa_throw; 27 __cxa_throw_bad_array_new_length; 28 __dynamic_cast; 29 __gxx_personality_v0; 30 31 extern "C++" { 32 # Type info classes and their destructors 33 "__cxxabiv1::__array_type_info::~__array_type_info()"; 34 "__cxxabiv1::__class_type_info::~__class_type_info()"; 35 "__cxxabiv1::__enum_type_info::~__enum_type_info()"; 36 "__cxxabiv1::__function_type_info::~__function_type_info()"; 37 "__cxxabiv1::__fundamental_type_info::~__fundamental_type_info()"; 38 "__cxxabiv1::__pbase_type_info::~__pbase_type_info()"; 39 "__cxxabiv1::__pointer_to_member_type_info::~__pointer_to_member_type_info()"; 40 "__cxxabiv1::__pointer_type_info::~__pointer_type_info()"; 41 "__cxxabiv1::__si_class_type_info::~__si_class_type_info()"; 42 "__cxxabiv1::__vmi_class_type_info::~__vmi_class_type_info()"; 43 44 # vtables typeinfo classes. 45 "vtable for __cxxabiv1::__array_type_info"; 46 "vtable for __cxxabiv1::__class_type_info"; 47 "vtable for __cxxabiv1::__enum_type_info"; 48 "vtable for __cxxabiv1::__function_type_info"; 49 "vtable for __cxxabiv1::__fundamental_type_info"; 50 "vtable for __cxxabiv1::__pbase_type_info"; 51 "vtable for __cxxabiv1::__pointer_to_member_type_info"; 52 "vtable for __cxxabiv1::__pointer_type_info"; 53 "vtable for __cxxabiv1::__si_class_type_info"; 54 "vtable for __cxxabiv1::__vmi_class_type_info"; 55 56 # Type info for built-in types 57 "typeinfo for bool const*"; 58 "typeinfo for bool"; 59 "typeinfo for char const*"; 60 "typeinfo for char"; 61 "typeinfo for double const*"; 62 "typeinfo for double"; 63 "typeinfo for float const*"; 64 "typeinfo for float"; 65 "typeinfo for int const*"; 66 "typeinfo for int"; 67 "typeinfo for long const*"; 68 "typeinfo for long double const*"; 69 "typeinfo for long double"; 70 "typeinfo for long long const*"; 71 "typeinfo for long long"; 72 "typeinfo for long"; 73 "typeinfo for short const*"; 74 "typeinfo for short"; 75 "typeinfo for signed char const*"; 76 "typeinfo for signed char"; 77 "typeinfo for unsigned char const*"; 78 "typeinfo for unsigned char"; 79 "typeinfo for unsigned int const*"; 80 "typeinfo for unsigned int"; 81 "typeinfo for unsigned long const*"; 82 "typeinfo for unsigned long long const*"; 83 "typeinfo for unsigned long long"; 84 "typeinfo for unsigned long"; 85 "typeinfo for unsigned short const*"; 86 "typeinfo for unsigned short"; 87 "typeinfo for void const*"; 88 "typeinfo for void"; 89 "typeinfo for wchar_t const*"; 90 "typeinfo for wchar_t"; 91 92 "typeinfo for bool*"; 93 "typeinfo for wchar_t*"; 94 "typeinfo for short*"; 95 "typeinfo for char*"; 96 "typeinfo for unsigned char*"; 97 "typeinfo for long long*"; 98 "typeinfo for unsigned short*"; 99 "typeinfo for long*"; 100 "typeinfo for double*"; 101 "typeinfo for unsigned long*"; 102 "typeinfo for unsigned long long*"; 103 "typeinfo for int*"; 104 "typeinfo for long double*"; 105 "typeinfo for signed char*"; 106 "typeinfo for void*"; 107 "typeinfo for unsigned int*"; 108 "typeinfo for float*"; 109 110 "typeinfo for __cxxabiv1::__array_type_info"; 111 "typeinfo for __cxxabiv1::__class_type_info"; 112 "typeinfo for __cxxabiv1::__enum_type_info"; 113 "typeinfo for __cxxabiv1::__function_type_info"; 114 "typeinfo for __cxxabiv1::__fundamental_type_info"; 115 "typeinfo for __cxxabiv1::__pbase_type_info"; 116 "typeinfo for __cxxabiv1::__pointer_to_member_type_info"; 117 "typeinfo for __cxxabiv1::__pointer_type_info"; 118 "typeinfo for __cxxabiv1::__si_class_type_info"; 119 "typeinfo for __cxxabiv1::__vmi_class_type_info"; 120 121 # Typeinfo names. 122 123 "typeinfo name for unsigned char const*"; 124 "typeinfo name for long const*"; 125 "typeinfo name for double const*"; 126 "typeinfo name for unsigned long long const*"; 127 "typeinfo name for unsigned short const*"; 128 "typeinfo name for char const*"; 129 "typeinfo name for long long const*"; 130 "typeinfo name for short const*"; 131 "typeinfo name for unsigned int const*"; 132 "typeinfo name for float const*"; 133 "typeinfo name for bool const*"; 134 "typeinfo name for wchar_t const*"; 135 "typeinfo name for int const*"; 136 "typeinfo name for unsigned long const*"; 137 "typeinfo name for void const*"; 138 "typeinfo name for long double const*"; 139 "typeinfo name for signed char const*"; 140 "typeinfo name for wchar_t"; 141 "typeinfo name for short"; 142 "typeinfo name for char"; 143 "typeinfo name for float"; 144 "typeinfo name for void"; 145 "typeinfo name for unsigned int"; 146 "typeinfo name for bool"; 147 "typeinfo name for signed char"; 148 "typeinfo name for long double"; 149 "typeinfo name for int"; 150 "typeinfo name for unsigned long long"; 151 "typeinfo name for unsigned long"; 152 "typeinfo name for unsigned char"; 153 "typeinfo name for long"; 154 "typeinfo name for long long"; 155 "typeinfo name for unsigned short"; 156 "typeinfo name for double"; 157 158 "typeinfo name for bool*"; 159 "typeinfo name for wchar_t*"; 160 "typeinfo name for short*"; 161 "typeinfo name for char*"; 162 "typeinfo name for unsigned char*"; 163 "typeinfo name for long long*"; 164 "typeinfo name for unsigned short*"; 165 "typeinfo name for long*"; 166 "typeinfo name for double*"; 167 "typeinfo name for unsigned long*"; 168 "typeinfo name for unsigned long long*"; 169 "typeinfo name for int*"; 170 "typeinfo name for long double*"; 171 "typeinfo name for signed char*"; 172 "typeinfo name for void*"; 173 "typeinfo name for unsigned int*"; 174 "typeinfo name for float*"; 175 176 "typeinfo name for __cxxabiv1::__array_type_info"; 177 "typeinfo name for __cxxabiv1::__class_type_info"; 178 "typeinfo name for __cxxabiv1::__enum_type_info"; 179 "typeinfo name for __cxxabiv1::__function_type_info"; 180 "typeinfo name for __cxxabiv1::__fundamental_type_info"; 181 "typeinfo name for __cxxabiv1::__pbase_type_info"; 182 "typeinfo name for __cxxabiv1::__pointer_to_member_type_info"; 183 "typeinfo name for __cxxabiv1::__pointer_type_info"; 184 "typeinfo name for __cxxabiv1::__si_class_type_info"; 185 "typeinfo name for __cxxabiv1::__vmi_class_type_info"; 186 187 "std::type_info::type_info(std::type_info const&)"; 188 "std::type_info::operator=(std::type_info const&)"; 189 190 191 # Extensions 192 "pathscale::set_terminate(void (*)())"; 193 "pathscale::set_unexpected(void (*)())"; 194 "pathscale::set_use_thread_local_handlers(bool)"; 195 }; 196 197 # C++11 typeinfo not understood by ld.bfd 2.17.50 198 # std::nullptr_t 199 _ZTIDn;_ZTIPDn;_ZTIPKDn; 200 # char16_t 201 _ZTIDi;_ZTIPDi;_ZTIPKDi; 202 # char32_t 203 _ZTIDs;_ZTIPDs;_ZTIPKDs; 204 # IEEE 754r half-precision floating point 205 _ZTIDh;_ZTIPDh;_ZTIPKDh; 206 207 # C++11 typeinfo name not understood by ld.bfd 2.17.50 208 # std::nullptr_t 209 _ZTSDn;_ZTSPDn;_ZTSPKDn; 210 # char16_t 211 _ZTSDi;_ZTSPDi;_ZTSPKDi; 212 # char32_t 213 _ZTSDs;_ZTSPDs;_ZTSPKDs; 214 # IEEE 754r half-precision floating point 215 _ZTSDh;_ZTSPDh;_ZTSPKDh; 216 217 local: 218 *; 219}; 220 221CXXABI_1.3.1 { 222 __cxa_get_exception_ptr; 223} CXXABI_1.3; 224 225CXXABI_1.3.5 { 226 extern "C++" { 227 "typeinfo for __int128 const*"; 228 "typeinfo for __int128"; 229 "typeinfo for __int128*"; 230 "typeinfo for unsigned __int128 const*"; 231 "typeinfo for unsigned __int128"; 232 "typeinfo for unsigned __int128*"; 233 }; 234} CXXABI_1.3.1; 235 236CXXABI_1.3.6 { 237 __cxa_deleted_virtual; 238} CXXABI_1.3.5; 239 240CXXABI_1.3.9 { 241 extern "C++" { 242 "typeinfo name for __int128 const*"; 243 "typeinfo name for __int128"; 244 "typeinfo name for __int128*"; 245 "typeinfo name for unsigned __int128 const*"; 246 "typeinfo name for unsigned __int128"; 247 "typeinfo name for unsigned __int128*"; 248 "operator delete[](void*, unsigned int)"; 249 "operator delete(void*, unsigned int)"; 250 }; 251} CXXABI_1.3.6; 252 253CXXABI_1.3.11 { 254 __cxa_init_primary_exception; 255} CXXABI_1.3.9; 256 257CXXABI_1.3.15 { 258 __cxa_call_terminate; 259} CXXABI_1.3.11; 260 261CXXRT_1.0 { 262 263 extern "C++" { 264 "std::type_info::name() const"; 265 "std::type_info::before(std::type_info const&) const"; 266 "std::type_info::operator==(std::type_info const&) const"; 267 "std::type_info::operator!=(std::type_info const&) const"; 268 "std::bad_cast::bad_cast(std::bad_cast const&)"; 269 "std::bad_cast::bad_cast()"; 270 "std::bad_cast::operator=(std::bad_cast const&)"; 271 "std::bad_typeid::bad_typeid(std::bad_typeid const&)"; 272 "std::bad_typeid::bad_typeid()"; 273 "std::bad_typeid::operator=(std::bad_typeid const&)"; 274 "std::exception::exception(std::exception const&)"; 275 "std::exception::exception()"; 276 "std::exception::operator=(std::exception const&)"; 277 "std::bad_alloc::bad_alloc(std::bad_alloc const&)"; 278 "std::bad_alloc::bad_alloc()"; 279 "std::bad_alloc::operator=(std::bad_alloc const&)"; 280 "std::bad_array_new_length::bad_array_new_length(std::bad_array_new_length const&)"; 281 "std::bad_array_new_length::bad_array_new_length()"; 282 "std::bad_array_new_length::operator=(std::bad_array_new_length const&)"; 283 284 }; 285 __cxa_allocate_dependent_exception; 286 __cxa_current_primary_exception; 287 __cxa_decrement_exception_refcount; 288 __cxa_free_dependent_exception; 289 __cxa_increment_exception_refcount; 290 __cxa_rethrow_primary_exception; 291 292} CXXABI_1.3.6; 293 294 295GLIBCXX_3.4 { 296 extern "C++" { 297 "operator delete[](void*)"; 298 "operator delete(void*)"; 299 "operator new[](unsigned int)"; 300 "operator new(unsigned int)"; 301 "operator new(unsigned int, std::nothrow_t const&)"; 302 303 "std::unexpected()"; 304 "std::get_terminate()"; 305 "std::get_unexpected()"; 306 "std::uncaught_exception()"; 307 "std::terminate()"; 308 309 "std::type_info::~type_info()"; 310 "std::bad_cast::~bad_cast()"; 311 "std::bad_typeid::~bad_typeid()"; 312 "std::exception::~exception()"; 313 "std::bad_alloc::~bad_alloc()"; 314 "std::bad_array_new_length::~bad_array_new_length()"; 315 316 "std::exception::what() const"; 317 318 std::set_new_handler*; 319 std::set_terminate*; 320 std::set_unexpected*; 321 std::type_info::__*; 322 323 "vtable for std::bad_alloc"; 324 "vtable for std::bad_cast"; 325 "vtable for std::bad_typeid"; 326 "vtable for std::exception"; 327 "vtable for std::type_info"; 328 "vtable for std::bad_array_new_length"; 329 330 "typeinfo for std::bad_alloc"; 331 "typeinfo for std::bad_typeid"; 332 "typeinfo for std::bad_cast"; 333 "typeinfo for std::exception"; 334 "typeinfo for std::type_info"; 335 "typeinfo for std::bad_array_new_length"; 336 "typeinfo name for std::bad_alloc"; 337 "typeinfo name for std::bad_typeid"; 338 "typeinfo name for std::bad_cast"; 339 "typeinfo name for std::exception"; 340 "typeinfo name for std::type_info"; 341 "typeinfo name for std::bad_array_new_length"; 342 343 }; 344}; 345 346GLIBCXX_3.4.9 { 347 extern "C++" { 348 "std::bad_typeid::what() const"; 349 "std::bad_cast::what() const"; 350 "std::bad_alloc::what() const"; 351 "std::bad_array_new_length::what() const"; 352 }; 353} GLIBCXX_3.4; 354 355GLIBCXX_3.4.20 { 356 extern "C++" { 357 "std::get_new_handler()"; 358 }; 359} GLIBCXX_3.4.9; 360 361GLIBCXX_3.4.22 { 362 extern "C++" { 363 "std::uncaught_exceptions()"; 364 }; 365} GLIBCXX_3.4.20; 366 367