dlsym() on C++ symbols

Alexandre Oliva aoliva@redhat.com
Wed Jul 5 20:39:00 GMT 2000


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



More information about the Gcc-help mailing list