From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6044 Path: news.gmane.org!not-for-mail From: "piranna@gmail.com" Newsgroups: gmane.linux.lib.musl.general Subject: Re: static build and dlopen Date: Tue, 2 Sep 2014 02:49:21 +0200 Message-ID: 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> <20140902003849.GH12888@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1409619001 19151 80.91.229.3 (2 Sep 2014 00:50:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 00:50:01 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6051-gllmg-musl=m.gmane.org@lists.openwall.com Tue Sep 02 02:49:55 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 1XOcIE-00051S-1R for gllmg-musl@plane.gmane.org; Tue, 02 Sep 2014 02:49:54 +0200 Original-Received: (qmail 11496 invoked by uid 550); 2 Sep 2014 00:49:53 -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 11488 invoked from network); 2 Sep 2014 00:49:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=IuYz3HjE/nzduZPd68eGyTTZF1esx3JtqQjNCF+kG30=; b=WW6zWx63lLwrdsosA9Xu1ur+LhKIUQg74tRokDxqTrrBsz5OGFTmad5RwSo3dKlLjN mocOXYe8oaeZalSoBaWLlJ85dNOmM4ur3nAMWgmSx5DkgTYqxlqDvrY55dZx1DFgH/3X sl3eNVr0eqU05bB7d5yZdmNSiTiWZsoH/4969nTyLyYLBCcBND1dwSol8pxjfTtw0cj5 6aI2IWtEz1fXNhbwyg5msVeNdpcuaXyRwcJXvQjB82sJfUf/0s4h6gNVHXKf8CMaCAu2 jKsYMh1sOKU0hfs94NpJQzlWVoqPCbdomGOsgB91p88fiEnLdeHenzQsqBwROhB5cwPX lt6w== X-Received: by 10.180.208.111 with SMTP id md15mr24524288wic.3.1409618982025; Mon, 01 Sep 2014 17:49:42 -0700 (PDT) In-Reply-To: <20140902003849.GH12888@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:6044 Archived-At: Yes I know, I put it as example of the glibc case before I started using musl to try to solve it since glibc static link didn't worked for me, I know that musl one is /lib/ld-musl-i386.so.1. 2014-09-02 2:38 GMT+02:00 Rich Felker : > 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 --=20 "Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton de sitios diferentes, simplemente escribe un sistema operativo Unix." =E2=80=93 Linus Tordvals, creador del sistema operativo Linux