From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2436 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: static linking and dlopen Date: Sat, 8 Dec 2012 23:25:29 -0800 Message-ID: <20121208232529.79bab53a.idunham@lavabit.com> References: <20121208225237.GV20323@brightrain.aerifal.cx> <50C3CA75.8000504@comcast.net> <20121209063658.GA2925@openwall.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355037951 12608 80.91.229.3 (9 Dec 2012 07:25:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 07:25:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2437-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 09 08:26:04 2012 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 1ThbGu-0000Jb-Tr for gllmg-musl@plane.gmane.org; Sun, 09 Dec 2012 08:25:57 +0100 Original-Received: (qmail 5586 invoked by uid 550); 9 Dec 2012 07:25:44 -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 5576 invoked from network); 9 Dec 2012 07:25:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=lRfCWBo2knrrpRPE7OqNm7SsFr9WrF4Q8SGgxin4m5v9Bq2vrvFYODPip5XziXqfOcFZiIDfjUnW2Xat23CoCHc2PHwJ0zFeqMRCMFSqRYv8y39FTkyLDVkd4+AsTd6zKgNAm8N+sBicBA1NVsJs8URXt4Dd3Or9b0URCPX5qDI=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20121209063658.GA2925@openwall.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:2436 Archived-At: On Sun, 9 Dec 2012 10:36:58 +0400 croco@openwall.com wrote: > Anyway, for a lot of existing programs, the absense of dlopen will mean a > necessity for heavy rewritings in order to compile them with musl - perhaps > too heavy to be done at all. > I think there's a misunderstanding here: musl includes a dlopen function. When a binary is statically linked, it is a stub. When a binary is dynamically linked, it loads the shared library requested. > P.S. thank you for the great work you do! > > -- > Cheers, > Croco -- Isaac Dunham