mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Coming soon: Dynamic linker!
Date: Wed, 15 Jun 2011 01:18:13 -0400	[thread overview]
Message-ID: <20110615051813.GD12592@brightrain.aerifal.cx> (raw)

Greetings!

I've resumed work on the dynamic linker, and despite not being very
featureful or configurable yet, it seems to be working. I have not
committed the code to the git repo yet but I hope to so soon after a
little more testing and cleanup (and adding x86_64 support).

Some highlights:

- For programs that use no third-party libraries, only libc, the
  "strace" of dynamic and static linked programs is identical. No
  syscalls are made at startup. This is possible because the "program
  interpreter" (ld.so) and libc reside together in a single .so file.

- Minimum dirty page overhead is just 16k, versus 8k for static
  linking, and the difference is purely the libc's data segment. It
  may be possible to reduce this to 12k with custom GNU ld scripts, if
  anybody cared. In comparison, uClibc uses at least 40k and glibc at
  least 52k.

Dynamic *loading* (dlopen/dlsym) is not yet implemented, but should
not be difficult to add to the current design. When that's working, I
plan to start the 0.8 release cycle.

Rich


                 reply	other threads:[~2011-06-15  5:18 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=20110615051813.GD12592@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).