[libc-commits] [libc] [libc] Minimal crt1 for baremetal RISC-V (PR #224714)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Mon Sep 21 10:46:06 PDT 2026
================
@@ -0,0 +1,85 @@
+//===-- Implementation of crt for riscv -----------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "hdr/stdint_proxy.h"
+#include "src/__support/macros/config.h"
+#include "src/stdlib/atexit.h"
+#include "src/stdlib/exit.h"
+#include "src/string/memcpy.h"
+#include "src/string/memset.h"
+#include "startup/baremetal/fini.h"
+#include "startup/baremetal/init.h"
+
+extern "C" {
+int main(int argc, char **argv);
----------------
petrhosek wrote:
Done.
https://github.com/llvm/llvm-project/pull/224714
More information about the libc-commits
mailing list