mailing list of musl libc
 help / color / mirror / code / Atom feed
* dlopen/dlsym support committed
@ 2011-06-26 23:41 Rich Felker
  0 siblings, 0 replies; only message in thread
From: Rich Felker @ 2011-06-26 23:41 UTC (permalink / raw)
  To: musl

Greetings!

I've committed experimental dlopen/dlsym support for musl. Presently
they only work if the main program is dynamic linked. Making them work
for static linked programs actually requires some really ugly hackery
which I'm putting off for the time being.

Some other limitations:

- dlclose is a no-op. There's not yet any way to unload libraries
  which are no longer needed. This should eventually be possible
  however, at least for RTLD_LOCAL mode.

- dlerror is a dummied out, so it's very hard to tell what went wrong
  if loading or resolving a symbol fails.

Nonetheless, I believe even the current very limited version meets the
POSIX requirements for how dependency and symbol resolution should
take place, and it should be possible to compile and use programs that
depend on dynamic module loading.

I'd be happy to see some reports of success or failure with major
software packages.

Rich


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-26 23:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-26 23:41 dlopen/dlsym support committed Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).