From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4584 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Pre-compiled versions of ELLCC are now available via FTP. Date: Sun, 16 Feb 2014 02:36:11 +0100 Message-ID: <20140216013611.GL23551@port70.net> References: <52FFF1F7.9000900@pennware.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 1392514575 22872 80.91.229.3 (16 Feb 2014 01:36:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 01:36:15 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4588-gllmg-musl=m.gmane.org@lists.openwall.com Sun Feb 16 02:36:24 2014 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 1WEqed-00051T-VP for gllmg-musl@plane.gmane.org; Sun, 16 Feb 2014 02:36:24 +0100 Original-Received: (qmail 23957 invoked by uid 550); 16 Feb 2014 01:36:22 -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 23949 invoked from network); 16 Feb 2014 01:36:22 -0000 Content-Disposition: inline In-Reply-To: <52FFF1F7.9000900@pennware.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4584 Archived-At: * Richard Pennington [2014-02-15 17:02:15 -0600]: > I have made pre-compiled versions of the ELLCC cross compilation > tool chain available for various Linux targets. > They can be found at ftp://ellcc.org/pub nice > Tarball contents: > C/C++ compiler (ecc, ecc++) > Assemblers for all targets > GNU binutils compiled to support all targets. > GDB compiled to support all the targets. static gdb is very useful thanks > because I don't have access to Linux boxes running on the other targets. I > would welcome feedback on how they work for you. mips is broken i used the i386 tool chain to compile to mips target $ ellcc-i386/bin/ecc -target mips-ellcc-linux hello.c /tmp/ellcc-i386/bin/ecc-ld: /tmp/ellcc-i386/bin/../libecc/lib/mips/linux/crtbegin.o: warning: linking abicalls files with non-abicalls files /tmp/ellcc-i386/bin/ecc-ld: /tmp/ellcc-i386/bin/../libecc/lib/mips/linux/libc.a(syscall.o): warning: linking abicalls files with non-abicalls files the resulting binary works in qemu-mips but crashes on my router (the same is true for the binaries in the ellcc-mips tool chain) seems to be an o32 vs eabi issue based on the readelf -h output: musl-cross: ABI Version: 0 Flags: 0x1007, noreorder, pic, cpic, o32, mips1 ellcc: ABI Version: 1 Flags: 0x5, noreorder, cpic, mips1 i think the mips asm in musl is written for o32 abi i'm not sure why it works in qemu