Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 26 Aug 2015 14:08:13 -0400
From: Rich Felker <>
Subject: Re: musl-based toolchain for J2/SH-2 - kernel patches

On Wed, Aug 26, 2015 at 01:42:12PM -0400, Rich Felker wrote:
> I've packaged up a small cross-compiler-toolchain build script that's
> especially geared towards use with the Open Processor Foundation's J2
> Core, which uses the SH-2 ISA, and in the future other NOMMU archs:

One more thing: A couple kernel-side patches are needed to support the
binaries produced by this toolchain on SH-2/J2 and other NOMMU
systems. One adds the unified syscall trap number for SH-2/3/4; the
other enables loading of ELF files on NOMMU. Early versions of both
were included in this email to the musl list:

The version of the SH unified syscall trap patch that's been proposed
upstream is available here as well:

It touches some of the same code touched by the 0pf/J2 patches:

so some minor work to merge them is needed for using this on the real
J2 hardware.

I'm attaching both patches to this email as well.


View attachment "sh-unified-syscall-v2.diff" of type "text/plain" (3459 bytes)

View attachment "fdpic_elf_loader.diff" of type "text/plain" (1970 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.