This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)            |


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]