On Fri, 24 Jun 2016 03:22:23 -0700 (PDT)
Andrew Mezoni <andrew.mez...@gmail.com> wrote:

> >> So, how exactly does this method work with Linux shared libraries?
> 
> It does not work on Linux.
> On Linux you should use the methods:
> 
> dlclose, dlopen, dlmopen - open and close a shared object
> 
> http://man7.org/linux/man-pages/man3/dlopen.3.html

Note that these calls are provided by libc, not by the kernel (that's
why their manual pages are in section 3 BTW) so using them requires
using cgo -- contrary to syscall.LoadLibary() on Windows.

I don't know whether it's at all possible to have something like
dlopen() without touching libc on Linux (and other non-Windows
platforms) because that ultimately requires running the dynamic linker
program (well, at least that's my understanding).

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to