From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7870 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: stable 1.1.9 & current GIT broken on mips Date: Thu, 4 Jun 2015 12:07:08 -0400 Message-ID: <20150604160708.GQ17573@brightrain.aerifal.cx> References: <1433243791.2010.21.camel@xiaoka.com> <20150602112410.GC10927@port70.net> <1433246655.2010.22.camel@xiaoka.com> <556DD263.5070800@dd-wrt.com> <20150602171924.GI17573@brightrain.aerifal.cx> <556DED4F.5040000@dd-wrt.com> <20150602191133.GJ17573@brightrain.aerifal.cx> <556E0B0C.200@dd-wrt.com> <20150604040402.GP17573@brightrain.aerifal.cx> <5570411B.40307@dd-wrt.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 1433434060 13573 80.91.229.3 (4 Jun 2015 16:07:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 16:07:40 +0000 (UTC) Cc: musl@lists.openwall.com To: Sebastian Gottschall Original-X-From: musl-return-7883-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jun 04 18:07:40 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Z0Xg1-00054y-3W for gllmg-musl@m.gmane.org; Thu, 04 Jun 2015 18:07:29 +0200 Original-Received: (qmail 3860 invoked by uid 550); 4 Jun 2015 16:07:26 -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 3833 invoked from network); 4 Jun 2015 16:07:25 -0000 Content-Disposition: inline In-Reply-To: <5570411B.40307@dd-wrt.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7870 Archived-At: On Thu, Jun 04, 2015 at 02:14:19PM +0200, Sebastian Gottschall wrote: > nbd gave me the following patch he found in the IRC. i tested it and > its working > > > diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c > index 42930ad..f498327 100644 > --- a/src/ldso/dynlink.c > +++ b/src/ldso/dynlink.c > @@ -270,6 +270,8 @@ static void do_relocs(struct dso *dso, size_t > *rel, size_t rel_size, size_t stri > for (; rel_size; rel+=stride, rel_size-=stride*sizeof(size_t)) { > if (skip_relative && IS_RELATIVE(rel[1])) continue; > type = R_TYPE(rel[1]); > + if (!type) > + continue; > sym_index = R_SYM(rel[1]); > reloc_addr = (void *)(base + rel[0]); > if (sym_index) { Excellent. I've applied an equivalent fix to git master and it will be in the 1.1.10 release (coming up soon). Rich