From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from deimos.uberspace.de (deimos.uberspace.de [185.26.156.152]) by sourceware.org (Postfix) with ESMTPS id F2B7E3858D28 for ; Sat, 14 May 2022 12:50:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F2B7E3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=jdoubleu.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jdoubleu.de Received: (qmail 29595 invoked by uid 989); 14 May 2022 12:50:36 -0000 Authentication-Results: deimos.uberspace.de; auth=pass (plain) Message-ID: <5027bd1e-f976-fd55-dd70-f86cc805d969@jdoubleu.de> Date: Sat, 14 May 2022 14:50:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: de-DE To: newlib@sourceware.org From: jdoubleu Subject: Does newlib support x86_64-pc-linux-gnu? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Bar: -- X-Rspamd-Report: BAYES_HAM(-2.939591) MIME_GOOD(-0.1) SUBJECT_ENDS_QUESTION(1) X-Rspamd-Score: -2.039591 Received: from unknown (HELO unkown) (::1) by deimos.uberspace.de (Haraka/2.8.28) with ESMTPSA; Sat, 14 May 2022 14:50:35 +0200 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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: Sat, 14 May 2022 12:50:39 -0000 Hello, please excuse me asking. I'm fairly new to newlib and don't see the bigger picture yet. I was wondering whether it is possible to build newlib for the linux platform. I would like to link my program against newlib instead of glibc and run it on linux. From what I understand, it would just require some startup code and a backend which forwards some calls to the kernel using syscalls, doesn't it? Is there anything that speaks against it? Besides not having a real use-case. I'm trying to run the testsuite on my linux host. Right now, all tests are linked against glibc, causing me to test glibc instead of newlib. This would really help me testing newlib, because I don't have any "special" hardware, nor emulators setup. It does also offer the possibility to test newlib farily easy in a CI. My host and target platform is: x86_64-pc-linux-gnu -- Cheers --- 🙎🏻‍♂️ jdoubleu