From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1701 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: Re: ldso: dlclose. Date: Fri, 24 Aug 2012 00:02:09 +0800 Message-ID: <20120824000209.74ab2a3b@sibserver.ru> References: <503113C5.5010206@gmail.com> <20120820004803.GA27715@brightrain.aerifal.cx> <5603ddad712718518eed1430f5d00450@exys.org> <20120823124816.GP27715@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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345737822 12059 80.91.229.3 (23 Aug 2012 16:03:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2012 16:03:42 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1702-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 23 18:03:43 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 1T4Zsg-0007AG-HU for gllmg-musl@plane.gmane.org; Thu, 23 Aug 2012 18:03:38 +0200 Original-Received: (qmail 27983 invoked by uid 550); 23 Aug 2012 16:03:36 -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 27975 invoked from network); 23 Aug 2012 16:03:35 -0000 In-Reply-To: <20120823124816.GP27715@brightrain.aerifal.cx> X-Mailer: claws-mail Xref: news.gmane.org gmane.linux.lib.musl.general:1701 Archived-At: On Thu, 23 Aug 2012 08:48:16 -0400 Rich Felker wrote: > Anyway, unless the issue is fixed in binutils so that the vast > majority of libraries are marked non-unloadable, I don't see anything > we can do in musl. "glibc does it that way too" is not an excuse for > adding unsafe/non-robust behavior to musl. > > Rich The whole dlopen/dlclose/dlsym functions family are 'harmful': even if we want static linking, application will still rely on them and fail invisibly, creating more headaches. I think better leave dlclose() in it's current state now. It will always 'success', nobody will care.