From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2334 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.comp.embedded.openwrt.devel,gmane.linux.lib.musl.general Subject: Re: [musl] Support for musl libc in OpenWrt Date: Sun, 25 Nov 2012 14:37:33 +0100 Message-ID: <20121125133733.GF10895@port70.net> References: <50AFD839.9010408@openwrt.org> <20121123221533.eb6d941c.idunham@lavabit.com> <201211251246.27100.florian@openwrt.org> Reply-To: OpenWrt Development List NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353850657 837 80.91.229.3 (25 Nov 2012 13:37:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2012 13:37:37 +0000 (UTC) Cc: Isaac Dunham , musl@lists.openwall.com To: OpenWrt Development List Original-X-From: openwrt-devel-bounces@lists.openwrt.org Sun Nov 25 14:37:48 2012 Return-path: Envelope-to: gceod-openwrt-devel@m.gmane.org Original-Received: from arrakis.dune.hu ([78.24.191.176]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TccP4-0003O4-G9 for gceod-openwrt-devel@m.gmane.org; Sun, 25 Nov 2012 14:37:46 +0100 Original-Received: from arrakis.dune.hu ([127.0.0.1]) by localhost (arrakis.dune.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qxG8wu9-De2W; Sun, 25 Nov 2012 14:37:02 +0100 (CET) Original-Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A2AEE284553; Sun, 25 Nov 2012 14:37:02 +0100 (CET) Original-Received: from arrakis.dune.hu ([127.0.0.1]) by localhost (arrakis.dune.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lZoVLIxWk4ja for ; Sun, 25 Nov 2012 14:37:01 +0100 (CET) Original-Received: from port70.net (morecp.net [79.172.201.187]) by arrakis.dune.hu (Postfix) with ESMTP id 994FB28098F for ; Sun, 25 Nov 2012 14:37:01 +0100 (CET) Original-Received: by port70.net (Postfix, from userid 1002) id 460C43C06961; Sun, 25 Nov 2012 14:37:33 +0100 (CET) Content-Disposition: inline In-Reply-To: <201211251246.27100.florian@openwrt.org> X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Original-Sender: "openwrt-devel" Xref: news.gmane.org gmane.comp.embedded.openwrt.devel:16422 gmane.linux.lib.musl.general:2334 Archived-At: * Florian Fainelli [2012-11-25 12:46:26 +0100]: > Cop1 registers. After patching setjmp not to access these it works flawlessly > on MIPS (big-endian) but MIPS (little-endian) still segfaults while being > executed either from the kernel or qemu-mipsel. > so there is endian issue with dynamic linking musl c code should not depend on endianness (eg on x86 it works fine) so i guess the issue is mips specific maybe something in mips asm or maybe there is some difference between mips and mipsel other than the endianness? (elf header or auxv something, or the build toolchain is different in some way) can you run libc.so itself? /lib/libc.so should print a usage message if it works then try to run it as ldd on a dynlinked binary