From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.imi.moe (mail.imi.moe [IPv6:2400:8500:1301:747:133:130:114:100]) by sourceware.org (Postfix) with ESMTPS id AB1B03858287 for ; Mon, 8 Aug 2022 07:56:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB1B03858287 Received: from [IPV6:2408:8406:24c2:f8fc:dedf:c169:2cdf:1f6f] (unknown [IPv6:2408:8406:24c2:f8fc:dedf:c169:2cdf:1f6f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.imi.moe (Postfix) with ESMTPSA id ED5A42200E8 for ; Mon, 8 Aug 2022 16:56:28 +0900 (JST) Message-ID: <720b9093-3afb-677e-771c-77d323ab39fd@imi.moe> Date: Mon, 8 Aug 2022 15:56:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: newlib@sourceware.org From: imi415 Subject: Newlib provided syscalls on SH Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_ABUSEAT, RCVD_IN_XBL, SPF_HELO_NONE, SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2022 07:56:36 -0000 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 Makefile.am 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