[libc-commits] [libc] [libc] `__stack_chk_fail` baremetal dependencies (PR #76412)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jan 2 19:58:06 PST 2024


================
@@ -0,0 +1,25 @@
+//===---------- Baremetal implementation of IO utils ------------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC___SUPPORT_OSUTIL_BAREMETAL_IO_H
+#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_BAREMETAL_IO_H
+
+#include "src/__support/CPP/string_view.h"
+#include "src/__support/macros/attributes.h" // LIBC_INLINE
+
+namespace LIBC_NAMESPACE {
+
+extern "C" void __libc_log_write(const char* msg, size_t len);
----------------
petrhosek wrote:

Done

https://github.com/llvm/llvm-project/pull/76412


More information about the libc-commits mailing list