Re: [PATCH 0/3] tools/nolibc: add support for SuperH

Thomas Weißschuh <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.ports.sh.devel
Message-ID <[email protected]>
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 <[email protected]>
> Acked-by: D. Jeff Dionne <[email protected]>

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/[email protected]/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.