From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1286 Path: news.gmane.org!not-for-mail From: Gregor Richards Newsgroups: gmane.linux.lib.musl.general Subject: Re: mips port working! & remaining issues Date: Fri, 13 Jul 2012 11:15:56 -0400 Message-ID: <50003BAC.8070800@purdue.edu> References: <20120713052313.GA20369@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342192579 4321 80.91.229.3 (13 Jul 2012 15:16:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 15:16:19 +0000 (UTC) Cc: Rich Felker To: musl@lists.openwall.com Original-X-From: musl-return-1287-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 13 17:16:15 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 1SphbH-00072L-Lr for gllmg-musl@plane.gmane.org; Fri, 13 Jul 2012 17:16:11 +0200 Original-Received: (qmail 5214 invoked by uid 550); 13 Jul 2012 15:16:10 -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 5206 invoked from network); 13 Jul 2012 15:16:10 -0000 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <20120713052313.GA20369@brightrain.aerifal.cx> X-PMX-Version: 5.5.9.388399 X-PerlMx-Virus-Scanned: Yes Xref: news.gmane.org gmane.linux.lib.musl.general:1286 Archived-At: New cross compiler tarballs, particularly for those wishing for soft float, since that's not workable with the normal tarball: Hard float: https://bitbucket.org/GregorR/musl-cross/downloads/crossx86-mips-linux-musl-2012-07-13-649cec5f.tar.xz Soft float: https://bitbucket.org/GregorR/musl-cross/downloads/crossx86-mips-sf-linux-musl-2012-07-13-649cec5f.tar.xz With valediction, - Gregor Richards On 07/13/12 01:23, Rich Felker wrote: > Hi all, > > According to libc-testsuite, the new mips port of musl is working. If > remaining issues exist, I suspect they're in the bits/*.h files' > definitions of kernel constants and structures, which I could use some > help reviewing. Threads, including cancellation, are known to work, > and mipsel (little endian) mode presumably works but is untested. > > One major omission that remains is the dynamic linker. Due to mips > o32's pathologically bad PIC ABI which has no PC-relative addressing, > the current dynamic linker cannot work as-is. Rather than replacing it > with an ugly mess of fragile early-stage code that depends on > non-optimization by the compiler (the way traditional dynamic linkers > work), I'd rather simply require the dynamic linker and libc to be > loaded at a fixed address chosen at build time -- this is basically > what prelink does. We may be able to use the existing prelink tools, > or just write a small special-purpose tool to prepare libc.so for > loading at a fixed address. > > Another major omission shared with arm is that setjmp/longjmp cannot > preserve floating point registers. This is because I don't yet know > how to determine at runtime whether hard-float is available, and the > registers can't be saved unless they can be determined to exist. Help > solving this problem would also be appreciated. > > Rich