This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
C++ name mangling
- From: Helge Bahmann <hcb at chaoticmind dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 22 Jul 2005 11:38:35 +0200 (CEST)
- Subject: C++ name mangling
Hello,
I would like to create symbol aliases from one symbol to another in an
object file. The way to do it with C symbols "appears" to be:
__asm__(".set foo, bar\n.globl foo\n")
Easy enough; for C++ this works as well, but I have to use the mangled
symbol name. Is there any way to obtain the mangled name of a symbol as
string? The documentation appears to indicate there is none, but I thought
I'd ask nevertheless...
Thanks and best regards
--
Helge Bahmann <hcb@chaoticmind.net> /| \__
The past: Smart users in front of dumb terminals /_|____\
_/\ | __)
$ ./configure \\ \|__/__|
checking whether build environment is sane... yes \\/___/ |
checking for AIX... no (we already did this) |