From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7830 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.comp.lib.uclibc.general,gmane.linux.lib.musl.general Subject: Re: Segmentation fault in __uClibc_main on m68k Date: Sat, 30 May 2015 10:59:14 -0400 Message-ID: <20150530145914.GN17573@brightrain.aerifal.cx> References: <20150530080608.GW16123@waldemar-brodkorb.de> 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 1432997979 26039 80.91.229.3 (30 May 2015 14:59:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 May 2015 14:59:39 +0000 (UTC) Cc: uclibc@uclibc.org, musl@lists.openwall.com To: Rob Landley Original-X-From: uclibc-bounces@uclibc.org Sat May 30 16:59:28 2015 Return-path: Envelope-to: gclug-uclibc@m.gmane.org Original-Received: from hemlock.osuosl.org ([140.211.166.133]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YyiEQ-0002uB-Uv for gclug-uclibc@m.gmane.org; Sat, 30 May 2015 16:59:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0A62595A8E; Sat, 30 May 2015 14:59:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Original-Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KAdkEZjNPp8P; Sat, 30 May 2015 14:59:22 +0000 (UTC) Original-Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 503E895A8A; Sat, 30 May 2015 14:59:22 +0000 (UTC) Original-Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D010A1BFC0C for ; Sat, 30 May 2015 14:59:21 +0000 (UTC) Original-Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C9DC09159E for ; Sat, 30 May 2015 14:59:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Original-Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3uhMl7GQ9y0c for ; Sat, 30 May 2015 14:59:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Original-Received: from brightrain.aerifal.cx (216-12-86-13.cv.mvl.ntelos.net [216.12.86.13]) by whitealder.osuosl.org (Postfix) with ESMTP id 892EE9159C for ; Sat, 30 May 2015 14:59:20 +0000 (UTC) Original-Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1YyiEE-0007sb-00; Sat, 30 May 2015 14:59:14 +0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: uclibc-bounces@uclibc.org Original-Sender: "uClibc" Xref: news.gmane.org gmane.comp.lib.uclibc.general:24543 gmane.linux.lib.musl.general:7830 Archived-At: On Sat, May 30, 2015 at 05:12:13AM -0500, Rob Landley wrote: > On Sat, May 30, 2015 at 3:06 AM, Waldemar Brodkorb wrote: > > Hi, > > Rob Landley wrote, > > > >> Of course somebody did a uclibc-ng fork (bought the domain name and > >> everything), but I talked to him and his reason for doing it is there > >> are some obscure targets even glibc doesn't support, and I expect that > >> as musl grows support for those targets his reasons for doing it will > >> gradually fade away. *shrug* We'll see. > > > > We'll see. In the FPGA world there are four main architectures, > > NIOS2, ARC, Microblaze and Xtensa. Nios2 and Microblaze are > > supported by GNU libc. ARC and Xtensa are only supported by > > uClibc/uClibc-ng. There are nice developers and company's behind. > > > > For all the no-MMU architectures or systems there is only one option > > at the moment. uClibc/uClibc-ng! > > Actually I spent this morning walking Rich through setup of his new > sh2 nommu board this morning. Is there an easy way to get started testing nommu Microblaze Linux in qemu or another emulator? Since musl already has a microblaze target, it should be easy to support. Based on my introduction to this stuff so far, the big thing I think needs work in the nommu scene is getting rid of hackish toolchain cruft. Flat binary format is a hideous hack and the exact same thing (binaries built using the standard psABI calling/linking conventions, but without shareable text) can be achieved with plain (non-FDPIC) ELF, but the kernel refuses to enable binfmt_elf for nommu, despite the fact that binfmt_elf_fdpic exists and can do the exact work binfmt_elf should be doing on nommu when it detects that the ELF headers require a fixed displacement between LOAD segments. When we get musl working on nommu, I don't want to dredge back up all the horrible hacks that were done historically in uclinux. Plain ELF binaries for the same ISA should just work, albeit with fork() failing with ENOSYS and some combinations of mmap flags failing, etc., and with no sharing of text. Then we can gradually add FDPIC on an as-needed basis. I'm working out the proof-of-concept for this approach on sh2 right now. Rich