mailing list of musl libc
 help / color / mirror / code / Atom feed
* Coming soon: Dynamic linker!
@ 2011-06-15  5:18 Rich Felker
  0 siblings, 0 replies; only message in thread
From: Rich Felker @ 2011-06-15  5:18 UTC (permalink / raw)
  To: musl

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


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

only message in thread, other threads:[~2011-06-15  5:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15  5:18 Coming soon: Dynamic linker! 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).