From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2394 Path: news.gmane.org!not-for-mail From: Florian Fainelli Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [OpenWrt-Devel] [musl] Support for musl libc in OpenWrt Date: Sat, 01 Dec 2012 10:16:32 +0100 Organization: OpenWrt Message-ID: <50B9CAF0.7040704@openwrt.org> References: <50AFD839.9010408@openwrt.org> <20121123221533.eb6d941c.idunham@lavabit.com> <201211251246.27100.florian@openwrt.org> <20121125133733.GF10895@port70.net> <50B26644.30401@barfooze.de> <50B2719E.9080004@openwrt.org> <20121201041514.GF20323@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: 8bit X-Trace: ger.gmane.org 1354353406 18830 80.91.229.3 (1 Dec 2012 09:16:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2012 09:16:46 +0000 (UTC) Cc: Rich Felker To: musl@lists.openwall.com Original-X-From: musl-return-2395-gllmg-musl=m.gmane.org@lists.openwall.com Sat Dec 01 10:16:58 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 1TejBv-0002Cx-Vg for gllmg-musl@plane.gmane.org; Sat, 01 Dec 2012 10:16:56 +0100 Original-Received: (qmail 7537 invoked by uid 550); 1 Dec 2012 09:16:43 -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 7529 invoked from network); 1 Dec 2012 09:16:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=4bof8qEIuZ5dX2lIIkLWG8Di91ilhtooMYQ7Iy3pLic=; b=v7QMZOVyjATEFW6f3NF/dtDWq8OHCthVcMe1k6cj2KIB9lM3UN3aFPZh2GMPkBUvQE 2xvF5X5/b1j/jIFy8AZEKJc86oPgs6K6X5kJnnPNdkIwENOZ+TMEEP0VUjQZuTsxy+Qp ShQ8KJD1KJcWXAvJ+2Q04gOjx+tgmF9ltfpSwC/TncAx3Yv1/Y2rwiGoYtv8x3j3FQrG lHlB8ZuQNDVbdOM4eqVrFpHZAy7f3Kos4WNcbPDI6B7HcIXQpQU2kSIfciRpFD6gngl4 fUNYtTk0CTLXNXmYJsoFWlMu+W9lflhrSm3rmtng/PVstb4FK1n6QLvFIec0qMEmM4BL ZegA== Original-Sender: Florian Fainelli User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <20121201041514.GF20323@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:2394 Archived-At: Le 01/12/2012 05:15, Rich Felker a écrit : > On Sun, Nov 25, 2012 at 08:29:34PM +0100, Florian Fainelli wrote: >> Le 25/11/2012 19:41, John Spencer a écrit : >>> On 11/25/2012 02:37 PM, Szabolcs Nagy wrote: >>>> * 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 >>> >>> nope, mipsel works as fine as mipseb using sabotage. >>> there must be something wrong on the openwrt side. >> >> Ok, then I will just start with more vanilla toolchains and kernel >> and see what could be going wrong. Thanks! > > Any progress on this? Yes, the issue is not related to the endianness, the problem seems to be either in how we integrate musl into the OpenWrt build system (unlikely since arm and x86* work ok using the same integration), but rather the musl build system and/or compiler environment. I got different results depending on how I rebuilt musl and the rootfs, this still needs investigation. In any case, don't consider this a blocker of any kind from the musl point of view. -- Florian