From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6043 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: static build and dlopen Date: Mon, 1 Sep 2014 20:38:49 -0400 Message-ID: <20140902003849.GH12888@brightrain.aerifal.cx> References: <20140827164309.GO12888@brightrain.aerifal.cx> <53FE27E6.60902@skarnet.org> <53FE46CB.1040609@skarnet.org> <20140827225429.Horde.T30hkC5iP0azg6vTH4R_8g1@ssl.eumx.net> <53FE68BF.3090205@skarnet.org> <9C22AC43-6E0E-4CEE-ACA6-9CE07B4DACC7@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1409618350 13019 80.91.229.3 (2 Sep 2014 00:39:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 00:39:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6050-gllmg-musl=m.gmane.org@lists.openwall.com Tue Sep 02 02:39:04 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XOc7j-0008BZ-4b for gllmg-musl@plane.gmane.org; Tue, 02 Sep 2014 02:39:03 +0200 Original-Received: (qmail 3527 invoked by uid 550); 2 Sep 2014 00:39:02 -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 3519 invoked from network); 2 Sep 2014 00:39:02 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:6043 Archived-At: On Tue, Sep 02, 2014 at 01:38:55AM +0200, piranna@gmail.com wrote: > Sorry for the delay, I have been busy these days. > > First of all, you were right: It possible to use dynamically linked > executables for PID 1, seems I was missing one of the libraries > (probably /lib/ld-linux.so.2... :-/ ). A heads-up: This should not exist if you're using musl. If it seems to be needed, you incorrectly linked against glibc, not musl, or possibly even a mix of the two, and stuff is likely to break very badly. The musl dynamic linker is named /lib/ld-musl-$(ARCH).so.1 where $(ARCH) would be i386 or x86_64 for 32- or 64-bit x86 systems, and something like mips, mipsel, arm, armhf, etc. for other common systems. Rich