Hi Rob,
On 2025-06-24 21:41:14-0500, Rob Landley wrote:
On 6/9/25 04:28, Thomas Weißschuh wrote:
Add support for SuperH/"sh" to nolibc. Only sh4 is tested for now.
This is only tested on QEMU so far. Additional testing would be very welcome.
I ran this by Jeff Dionne (the j-core architect) who said:
Looks correct to me. There are no endian assumptions that I can see.
So you can put
Acked-by: Rob Landley rob@landley.net Acked-by: D. Jeff Dionne jeff@coresemi.io
Thanks!
But neither of us really have a build environment set up to do much with it. Is there a howto for this, or is just to run the kernel tests?
v2 of the series [0] has some test instructions. These should also work with v1, except that "-f Makefile.nolibc" needs to be removed.
$ cd tools/testings/selftests/nolibc/ $ make -f Makefile.nolibc ARCH=sh CROSS_COMPILE=sh4-linux- nolibc-test $ file nolibc-test nolibc-test: ELF 32-bit LSB executable, Renesas SH, version 1 (SYSV), statically linked, not stripped $ ./nolibc-test Running test 'startup' 0 argc = 1 [OK] ... Total number of errors: 0 Exiting with status 0
[0] https://lore.kernel.org/lkml/20250623-nolibc-sh-v2-0-0f5b4b303025@weissschuh...