This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: dlsym() on C++ symbols
- To: "Munagala V. S. Ramanath" <ram at netcom dot com>
- Subject: Re: dlsym() on C++ symbols
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 06 Jul 2000 00:38:59 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200007060121.SAA19151@netcom.com>
On Jul 5, 2000, "Munagala V. S. Ramanath" <ram@netcom.com> wrote:
> After some experimentation (gcc-2.95.2, sparc-sun-solaris2.7) it seems
> that I need to supply the mangled name of symbols to dlsym().
Yup.
> Is there an easier way to do this?
Create a `map' in the shared library that maps user-specified names to
symbol addresses? Or use the name mangling/unmangling routines from
libiberty.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me