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]

Re: dlsym() on C++ symbols


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


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