On 02/01/2012 12:31 PM, Jason Merrill wrote:

Why do you want the link map to be demangled? It seems more reliable to
deal with mangled symbols; there's always c++filt if you want to check
what the symbols demangle to.

It's certainly more reliable for automated tools to deal with mangled symbols, but users (especially users who are not also compiler implementors!) have a very hard time translating mangled names into names that actually appear in their program source code. Additionally, demangling is the documented default behavior of ld and it's not exactly user-friendly for the linker to completely ignore both its usual default and explicit requests for demangled output when invoked via collect2. Using gcc to link your program instead of invoking ld directly is supposed to make things *easier* for users, not harder.

-Sandra



Reply via email to