From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7855 invoked by alias); 22 Jul 2005 09:38:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7466 invoked by uid 22791); 22 Jul 2005 09:38:11 -0000 Received: from m4s07.vlinux.de (HELO m4s07.vlinux.de) (83.151.27.105) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 22 Jul 2005 09:38:10 +0000 Received: from p54b4e2db.dip.t-dialin.net ([84.180.226.219] helo=lothlorien.local) by m4s07.vlinux.de with asmtp (Exim 3.35 #1 (Debian)) id 1Dvtyo-0000jU-00 for ; Fri, 22 Jul 2005 11:38:06 +0200 Received: from helge (helo=localhost) by lothlorien.local with local-esmtp (Exim 3.35 #1 (Debian)) id 1DvtzH-0006Q7-00 for ; Fri, 22 Jul 2005 11:38:35 +0200 Date: Fri, 22 Jul 2005 09:38:00 -0000 From: Helge Bahmann To: gcc-help@gcc.gnu.org Subject: C++ name mangling Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-07/txt/msg00231.txt.bz2 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 /| \__ 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) |