From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2445 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: static linking and dlopen Date: Sun, 9 Dec 2012 14:24:44 -0500 Message-ID: <20121209192444.GF20323@brightrain.aerifal.cx> 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> <20121209190753.GH23126@port70.net> 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 1355081095 9323 80.91.229.3 (9 Dec 2012 19:24:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2012 19:24:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2446-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 09 20:25:09 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 1ThmUv-0004TS-ID for gllmg-musl@plane.gmane.org; Sun, 09 Dec 2012 20:25:09 +0100 Original-Received: (qmail 4043 invoked by uid 550); 9 Dec 2012 19:24:57 -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 4033 invoked from network); 9 Dec 2012 19:24:56 -0000 Content-Disposition: inline In-Reply-To: <20121209190753.GH23126@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2445 Archived-At: On Sun, Dec 09, 2012 at 08:07:53PM +0100, Szabolcs Nagy wrote: > * 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 Yes, but being that it's abstracted by nspr, it could be replaced with a system to use internal 'plugins'. Anyway I was less concerned with features that are based on dynamic loading (plugins) and more interested in the problem that the whole core browser is made up of tons of shared libraries that are always-loaded (whether by dlopen or at startup-time, I'm not sure..) Rich