From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/66 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Dynamic linker committed! Date: Sun, 19 Jun 2011 08:49:59 -0400 Message-ID: <20110619124959.GR12592@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1308488234 13440 80.91.229.12 (19 Jun 2011 12:57:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2011 12:57:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-150-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 19 14:57:11 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QYHYs-00010F-Ol for gllmg-musl@lo.gmane.org; Sun, 19 Jun 2011 14:57:10 +0200 Original-Received: (qmail 9941 invoked by uid 550); 19 Jun 2011 12:57:09 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9927 invoked from network); 19 Jun 2011 12:57:09 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:66 Archived-At: 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