mailing list of musl libc
 help / color / mirror / code / Atom feed
* Dynamic linker committed!
@ 2011-06-19 12:49 Rich Felker
  2011-06-25  6:02 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Rich Felker @ 2011-06-19 12:49 UTC (permalink / raw)
  To: musl

Greetings,

The dynamic linker has been committed and is ready for testing. To use
it, libc.so needs to be installed somewhere convenient and the
-Wl,-dynamic-linker option needs to be passed to glibc to tell it
which dynamic linker to use. The eventual name I intend to use (short
of better suggestions) is /lib/ld-musl-$ARCH.so.1 where $ARCH is i386,
x86_64, etc. The idea of including $ARCH is that if a system can
support multiple archs' binaries (e.g. i386 and x86_64) no additional
special-casing of the dynamic linker name is required.

At present, the library search path is hard coded as
/lib:/usr/local/lib:/usr/lib. Obviously this only works if you have a
musl-based system rather than having glibc stuff in those paths, so
until I add configurability, you might want to edit the path in
src/ldso/dynamic.c manually when building.

Also note that there is no support for LD_* env vars, which in turn
means no support for the "ldd" program. Some support may be added
later.

My plan is to fix up some of these issues over the next week and make
an experimental release for more widespread testing, then move on to
the 0.8.x series with official dynamic linking support including the
addition of dlopen/dlsym functionality. This should in turn make it
possible to use much of the important previously-unusable software
like python, X.org, etc. with musl.

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Dynamic linker committed!
  2011-06-19 12:49 Dynamic linker committed! Rich Felker
@ 2011-06-25  6:02 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2011-06-25  6:02 UTC (permalink / raw)
  To: musl

On Sun, Jun 19, 2011 at 08:49:59AM -0400, Rich Felker wrote:
> At present, the library search path is hard coded as
> /lib:/usr/local/lib:/usr/lib. Obviously this only works if you have a
> musl-based system rather than having glibc stuff in those paths, so
> until I add configurability, you might want to edit the path in
> src/ldso/dynamic.c manually when building.

Search path support has been added. LD_LIBRARY_PATH is used (except
for suid/sgid) and after that, the contents of /etc/ld-musl-$ARCH.path
are read and used as a (colon-separated) path string. If that file
cannot be read, a default path is used instead.

I have also made various changes to the build system for
installing/deploying shared libraries.

Please test and let me know if there are problems! I hope to make an
official release soon.

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-25  6:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-19 12:49 Dynamic linker committed! Rich Felker
2011-06-25  6:02 ` 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).