mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: dlopen/dlsym support committed
Date: Sun, 26 Jun 2011 19:41:04 -0400	[thread overview]
Message-ID: <20110626234104.GY12592@brightrain.aerifal.cx> (raw)

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


                 reply	other threads:[~2011-06-26 23:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110626234104.GY12592@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).