From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1762 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: ldso : dladdr support Date: Sat, 25 Aug 2012 17:42:14 -0400 Message-ID: <20120825214214.GN27715@brightrain.aerifal.cx> References: <20120811230536.GQ27715@brightrain.aerifal.cx> <20120817053934.GS27715@brightrain.aerifal.cx> <50311776.9040802@gmail.com> <20120820020626.GD27715@brightrain.aerifal.cx> <503233A8.8000604@gmail.com> <50324A60.7040206@gmail.com> <20120823213937.GS27715@brightrain.aerifal.cx> <20120823222113.GT27715@brightrain.aerifal.cx> <503944D5.1030300@gmail.com> 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 1345930834 29214 80.91.229.3 (25 Aug 2012 21:40:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2012 21:40:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1763-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 25 23:40:35 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 1T5O5r-0001PV-18 for gllmg-musl@plane.gmane.org; Sat, 25 Aug 2012 23:40:35 +0200 Original-Received: (qmail 1360 invoked by uid 550); 25 Aug 2012 21:40:33 -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 1352 invoked from network); 25 Aug 2012 21:40:32 -0000 Content-Disposition: inline In-Reply-To: <503944D5.1030300@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1762 Archived-At: On Sat, Aug 25, 2012 at 11:34:13PM +0200, musl wrote: > I found a bug in gnu_lookup of dependencies : > > + if (p->deps[i]->ghashtab) { > + if (!gh) gh = gnu_hash(s); > + sym = gnu_lookup(s, h, p->deps[i]); > + } else { > + if (!h) h = sysv_hash(s); > + sym = sysv_lookup(s, h, p->deps[i]); > + } > > you pass 'h' instead of 'gh' to gnu_lookup func Thanks! Fixed. Rich