From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5776 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] fix dlerror when using dlopen with a static libc Date: Fri, 8 Aug 2014 00:55:11 -0400 Message-ID: <20140808045511.GK1674@brightrain.aerifal.cx> References: <1407426569-78240-1-git-send-email-clement.vasseur@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1407473731 22044 80.91.229.3 (8 Aug 2014 04:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 04:55:31 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5781-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 08 06:55:24 2014 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 1XFcD6-00021k-Al for gllmg-musl@plane.gmane.org; Fri, 08 Aug 2014 06:55:24 +0200 Original-Received: (qmail 3672 invoked by uid 550); 8 Aug 2014 04:55:23 -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 3654 invoked from network); 8 Aug 2014 04:55:23 -0000 Content-Disposition: inline In-Reply-To: <1407426569-78240-1-git-send-email-clement.vasseur@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5776 Archived-At: On Thu, Aug 07, 2014 at 05:49:29PM +0200, Clément Vasseur wrote: > when the dynamic loader is disabled, dlopen fails correctly but dlerror > did not return a human readable error string like it should have. Committed. I also followed up with a related change for dlsym (which could legitimately be used, even if dlopen never succeeds, to search for symbols in the global namespace or RTLD_NEXT). Rich