public inbox for
 help / color / mirror / Atom feed
From: Jeff Johnston <>
To: imi415 <>
Cc: Newlib <>
Subject: Re: Newlib provided syscalls on SH
Date: Tue, 9 Aug 2022 15:29:23 -0400	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Hi Yilin,

You will need to patch the libc/sys/sh/ to match what is done
in libc/sys/arm/  This is fairly simple.  When you are done,
then you can
use the --disable-newlib-supplied-syscalls to omit whatever you want in the
libc/sys/sh directory.   Feel free to submit the patch here when you have
it working to your satisfaction.

-- Jeff J.

On Mon, Aug 8, 2022 at 3:56 AM imi415 via Newlib <>

> Hi all,
> I'm trying to build newlib for SuperH(sh) architecture, and the syscalls
> under the "newlib/libc/sys/sh" directory
> are built no matter whether "--disable-newlib-supplied-syscalls" is
> provided.The target is a bare-metal target
> so I need to provide these syscalls myself, same as other bare-metal
> targets do.
> I have checked the under the directory and there seems to be
> no special treatments for the "MAY_SUPPLY_SYSCALLS" option.
> Do I have to patch newlib for this or is there another way overriding
> these syscalls?
> P.S. The build environment is generated by Crosstool-NG.
> Thanks & Best Regards,
> Yilin Sun

      reply	other threads:[~2022-08-09 19:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08  7:56 imi415
2022-08-09 19:29 ` Jeff Johnston [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).