From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7862 Path: news.gmane.org!not-for-mail From: Sebastian Gottschall Newsgroups: gmane.linux.lib.musl.general Subject: Re: stable 1.1.9 & current GIT broken on mips Date: Tue, 2 Jun 2015 19:52:15 +0200 Message-ID: <556DED4F.5040000@dd-wrt.com> References: <1433236180.2010.17.camel@xiaoka.com> <20150602093553.GA10927@port70.net> <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> 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 1433267547 8364 80.91.229.3 (2 Jun 2015 17:52:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 17:52:27 +0000 (UTC) Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-7875-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 02 19:52:26 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 1YzqMO-0002WY-9r for gllmg-musl@m.gmane.org; Tue, 02 Jun 2015 19:52:20 +0200 Original-Received: (qmail 11570 invoked by uid 550); 2 Jun 2015 17:52:18 -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 11548 invoked from network); 2 Jun 2015 17:52:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dd-wrt.com; s=mikd; h=Subject:Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To; bh=0+jPPbWMxtkTDTUL0EMq2DmOHy9ffSx6ZnLVmtcLF/E=; b=cce5Ze3ibUdDe3XHRTFtaZAhGMQ+P5feetDGXr0JfQz/Iu5bsrIf4NPQ9U0rHOCdGx05zn95X7D1rMW0h6/89fIK7w9BTH83KJ1uJ+fAD9JLTHjSjwVImOscSu4d0bhj6QR4SXL2QycjmSuudm2HaNpAbEfaDDDmLQvqfSefzJI=; User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <20150602171924.GI17573@brightrain.aerifal.cx> X-SA-Exim-Connect-IP: 93.195.29.228 X-SA-Exim-Mail-From: s.gottschall@dd-wrt.com X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on webmail.newmedia-net.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=4.0 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_AHBL_RHSBL,RATWARE_GECKO_BUILD autolearn=no version=3.1.9, No X-SA-Exim-Version: 4.2.1 (built Thu, 26 May 2011 15:22:33 +0200) X-SA-Exim-Scanned: Yes (on webmail.newmedia-net.de) X-NMN-MailScanner-Information: Please contact the ISP for more information X-NMN-MailScanner-ID: 1YzqM8-0005xt-AI X-NMN-MailScanner: Found to be clean X-NMN-MailScanner-From: s.gottschall@dd-wrt.com X-Received: from [93.195.29.228] (helo=[10.88.193.128]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1YzqM8-0005xt-AI; Tue, 02 Jun 2015 19:52:04 +0200 Xref: news.gmane.org gmane.linux.lib.musl.general:7862 Archived-At: Am 02.06.2015 um 19:19 schrieb Rich Felker: > On Tue, Jun 02, 2015 at 05:57:23PM +0200, Sebastian Gottschall wrote: >> Hello >> >> i tested today the current 1.1.9 (and later also current git so see >> if its the same behaviour) >> build on a mipsr2 big endian target (atheros ar7xxx) based on my >> dd-wrt firmware. >> i found out that mips seems to be broken on musl right now. the >> behaviour is >> that a call using execvp will not result in calling the desired >> application. >> on a second call and a following return call, the userspace will >> lock up with no way todo anything anymore. >> >> for testing i used the same compiler, just recompiled musl with >> version 1.1.8 and overwrote the libc library and crt stuff. the >> result was, that it worked >> again without any issue >> >> it needs to be considered that parts of the code is compiled using >> -mips16 and -minterlink-mips16 if that matters > I suspect the regression is related to your use of mips16, which I had > no idea worked at all with musl and is not something that's officially > supported. Did you build musl itself as mips16? I don't think this is > going to work because we have tail calls back and forth between C and > asm code where the asm is written in normal 32-bit mips instructions. > There may also be issues with the dynamic linker start code if > crt_arch.h is assembled in mips16 mode. no musl itself is build without mips16. i'm aware that this will likelly not work. only the applications are partially compiled with mips16 (some libs like openssl arent compiled with mips16 for performance reasons) > Could you provide details on your setup, specifically, which > components are being compiled as mips16? all libs and applications which are affected here in this testcase are compiled with mips16, except for musl Sebastian > > Rich >