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 <dalias@...c.org>
To: 0pf@...mu.org
Cc: musl@...ts.openwall.com, nommu@...mu.org
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:
> 
> https://github.com/richfelker/musl-cross-make

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:

http://www.openwall.com/lists/musl/2015/06/16/5

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

http://lkml.iu.edu/hypermail/linux/kernel/1508.3/01702.html

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

http://lkml.iu.edu/hypermail/linux/kernel/1506.2/02538.html

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.

Rich

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.