mailing list of musl libc
 help / color / mirror / code / Atom feed
* Re: Segmentation fault in __uClibc_main on m68k
       [not found]             ` <CAOS_Y6SycroR31t8QSjREh63DK-vkwwGupXZFBDMpqs9hkqKNQ@mail.gmail.com>
@ 2015-05-30 14:59               ` Rich Felker
  0 siblings, 0 replies; only message in thread
From: Rich Felker @ 2015-05-30 14:59 UTC (permalink / raw)
  To: Rob Landley; +Cc: uclibc, musl

On Sat, May 30, 2015 at 05:12:13AM -0500, Rob Landley wrote:
> On Sat, May 30, 2015 at 3:06 AM, Waldemar Brodkorb <wbx@openadk.org> 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-30 14:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Kfh.Tnd0.1kB35iaIZFm.1LQ8l8@seznam.cz>
     [not found] ` <KDC.Tnai.cVPle}GFEx.1LQ4bO@seznam.cz>
     [not found]   ` <CAC1BbcSQ8Q5nkV-SdygTb9KEMnunMbFu84GXbzUhtwuW=cR9Pw@mail.gmail.com>
     [not found]     ` <CAC1BbcSUG3seRTJ0FQA2A1yn4PdEbnKq1gngWvL85Uo6AT_iTw@mail.gmail.com>
     [not found]       ` <KpC.Tndm.5Da2I1yq{lX.1LQAbF@seznam.cz>
     [not found]         ` <CAOS_Y6R0ZuC-vypoWdCQr7YS1f1QyMzPgNDPg5m+dS5bDghKRg@mail.gmail.com>
     [not found]           ` <20150530080608.GW16123@waldemar-brodkorb.de>
     [not found]             ` <CAOS_Y6SycroR31t8QSjREh63DK-vkwwGupXZFBDMpqs9hkqKNQ@mail.gmail.com>
2015-05-30 14:59               ` Segmentation fault in __uClibc_main on m68k Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).