What is Linux utility to mangle a C++ symbol name?

That’s how g++ mangles names. You might implement those mangling rules on your program.

Another (crazy) solution would be to list all of the symbols in the library you want to use (it’s not so difficult if you understand the format), demangle them all, and search your function’s name in that list. The advantage with this method is that demangling is easier, as there is a function call to do it: abi::__cxa_demangle, from cxxabi.h header.

Leave a Comment