dlsym can't use handle returned by dlopen?

Markus Hoenicka markus.hoenicka at mhoenicka.de
Thu Nov 13 04:22:00 PST 2008

Quoting Jeremy Chadwick <koitsu at FreeBSD.org>:

> As promised: http://www.malkavian.com/~jdc/myprog.tar.gz
> I couldn't figure out what the gcc flag was that I needed to keep
> certain characters from getting prepended to the symbol names.  I
> believe the char added was an underscore, but I could be wrong.
> Either way, the example should help you, I think.  (You can change
> RTLD_LAZY to RTLD_NOW and it still functions as expected)

Thanks a lot, I'll have a look at it when I get home tonight.


Markus Hoenicka
markus.hoenicka at cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")

More information about the freebsd-questions mailing list