From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2444 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: static linking and dlopen Date: Sun, 9 Dec 2012 20:07:53 +0100 Message-ID: <20121209190753.GH23126@port70.net> References: <20121208225237.GV20323@brightrain.aerifal.cx> <50C3CA75.8000504@comcast.net> <20121208232301.GW20323@brightrain.aerifal.cx> <20121209001616.GX20323@brightrain.aerifal.cx> <20121209175452.GD20323@brightrain.aerifal.cx> 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 1355080090 1105 80.91.229.3 (9 Dec 2012 19:08:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 19:08:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2445-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 09 20:08:22 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 1ThmEf-00085j-5G for gllmg-musl@plane.gmane.org; Sun, 09 Dec 2012 20:08:21 +0100 Original-Received: (qmail 30452 invoked by uid 550); 9 Dec 2012 19:08:05 -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 30444 invoked from network); 9 Dec 2012 19:08:05 -0000 Content-Disposition: inline In-Reply-To: <20121209175452.GD20323@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2444 Archived-At: * Rich Felker [2012-12-09 12:54:52 -0500]: > just links everything together the right way. It's not clear to me > whether this would be easy to change; it's possible that, due to > always using dynamic linking internally, a number of dependencies on > dynamic-linking-related behavior (symbol interposition, accessing > things via dlsym, etc.) crept into the code, and would be painful to > exorcise (especially under the constraint of not breaking their > dynamic builds). i guess it's hard to fix (legacy from netscape 2.0) https://en.wikipedia.org/wiki/NPAPI https://developer.mozilla.org/en-US/docs/Gecko_Plugin_API_Reference/Plug-in_Basics this plugin system is a core part of dom and uses the nspr (netscape portable runtime) to do the dlopen/dlclose/dlsym https://www.mozilla.org/projects/nspr/reference/html/prlink.html and most likely there are other dynamic linking dependencies, this is just an obvious one