From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2438 Path: news.gmane.org!not-for-mail From: Charlie Kester Newsgroups: gmane.linux.lib.musl.general Subject: Re: static linking and dlopen Date: Sun, 09 Dec 2012 00:10:14 -0800 Message-ID: <50C44766.7050301@comcast.net> References: <20121208225237.GV20323@brightrain.aerifal.cx> <50C3CA75.8000504@comcast.net> <20121209063658.GA2925@openwall.com> <20121208232529.79bab53a.idunham@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355040290 26483 80.91.229.3 (9 Dec 2012 08:04:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 08:04:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2439-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 09 09:05: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 1Thbsf-0008QR-13 for gllmg-musl@plane.gmane.org; Sun, 09 Dec 2012 09:04:57 +0100 Original-Received: (qmail 18326 invoked by uid 550); 9 Dec 2012 08:04:39 -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 18306 invoked from network); 9 Dec 2012 08:04:36 -0000 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.10) Gecko/20121028 Icedove/10.0.10 In-Reply-To: <20121208232529.79bab53a.idunham@lavabit.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1355040264; bh=q+Qyt5eHpjRzg1k+7f2XIeOL7DGtSf3YnFJr3jOqvEI=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=QTO7o2fheE0oICduoX2jP03oDhFTOSO4oGgWemAUSXtbnb56ObkIN04VS0a1l6v/q 62bIn5B2z3NWNlDJKDJjAZcMCJEFBYpvXNTL3dfb/bzoPZGGIIe1LdhZrRuJjSxOIB 8O8SM93SYKeA9iko0BFzIwMV+1fzOgnfKP3gM2maRm1MZ/fOxYjrn5QTQrNI7fgIWa FvkbuwMIXk9vECBzCJ0K5T54wdsaUkQVaskUMdd3kIdMCrNxd3OEnE1oEUjLMyJSa6 M5Vr5PNZKp/aXbPsF7JOMx8Z9C0ONwskj6jbXoGFBPjSKPWGsrdNGo+gYYd+G51llN 6SZBzsZUEN1rw== Xref: news.gmane.org gmane.linux.lib.musl.general:2438 Archived-At: On 12/08/2012 11:25 PM, Isaac Dunham wrote: > 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: Yes, and I apologize if I contributed to that misunderstanding with my musings on alternative designs. > 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.