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

via libc-commits libc-commits at lists.llvm.org
Tue Jan 2 13:32:57 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);
----------------
michaelrj-google wrote:

If these functions are intended to be provided by the vendor, it might be useful to add a comment explaining that (for both here and below).

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


More information about the libc-commits mailing list