From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7888 Path: news.gmane.org!not-for-mail From: "Anthony G. Basile" Newsgroups: gmane.linux.lib.musl.general Subject: Re: stable 1.1.9 & current GIT broken on mips Date: Sat, 06 Jun 2015 11:42:36 -0400 Message-ID: <557314EC.6000106@opensource.dyc.edu> 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> <20150604160708.GQ17573@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433605382 31460 80.91.229.3 (6 Jun 2015 15:43:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jun 2015 15:43:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7901-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 06 17:42:56 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 1Z1GFM-0002mC-I4 for gllmg-musl@m.gmane.org; Sat, 06 Jun 2015 17:42:56 +0200 Original-Received: (qmail 24543 invoked by uid 550); 6 Jun 2015 15:42:54 -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 24519 invoked from network); 6 Jun 2015 15:42:53 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150604160708.GQ17573@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7888 Archived-At: On 6/4/15 12:07 PM, Rich Felker wrote: > 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 > I can confirm that this fix the build on the lemote fuloongs which are little endian mips-III. 1.1.9 was broken there. -- Anthony G. Basile, Ph. D. Chair of Information Technology D'Youville College Buffalo, NY 14201 (716) 829-8197