[libc] Include empty remove in baremetal stdio.h (#85336)

This is required to avoid compilation error in libc++.

See #85335 for more details.

GitOrigin-RevId: 5a75242bc898886b9833e328ad5f656246424a81
diff --git a/config/baremetal/arm/entrypoints.txt b/config/baremetal/arm/entrypoints.txt
index 9670c8e..17ce56e 100644
--- a/config/baremetal/arm/entrypoints.txt
+++ b/config/baremetal/arm/entrypoints.txt
@@ -79,6 +79,7 @@
     libc.src.inttypes.strtoumax
 
     # stdio.h entrypoints
+    libc.src.stdio.remove
     libc.src.stdio.sprintf
     libc.src.stdio.snprintf
     libc.src.stdio.vsprintf
diff --git a/config/baremetal/riscv/entrypoints.txt b/config/baremetal/riscv/entrypoints.txt
index a30b08b..39756e1 100644
--- a/config/baremetal/riscv/entrypoints.txt
+++ b/config/baremetal/riscv/entrypoints.txt
@@ -79,6 +79,7 @@
     libc.src.inttypes.strtoumax
 
     # stdio.h entrypoints
+    libc.src.stdio.remove
     libc.src.stdio.sprintf
     libc.src.stdio.snprintf
     libc.src.stdio.vsprintf
diff --git a/src/stdio/baremetal/CMakeLists.txt b/src/stdio/baremetal/CMakeLists.txt
new file mode 100644
index 0000000..734a66f
--- /dev/null
+++ b/src/stdio/baremetal/CMakeLists.txt
@@ -0,0 +1,7 @@
+add_entrypoint_object(
+  remove
+  SRCS
+    remove.cpp
+  HDRS
+    ../remove.h
+)
diff --git a/src/stdio/baremetal/remove.cpp b/src/stdio/baremetal/remove.cpp
new file mode 100644
index 0000000..f4f2cdc
--- /dev/null
+++ b/src/stdio/baremetal/remove.cpp
@@ -0,0 +1,19 @@
+//===-- Linux implementation of remove ------------------------------------===//
+//
+// 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 "src/stdio/remove.h"
+
+#include "src/__support/common.h"
+
+namespace LIBC_NAMESPACE {
+
+// TODO: This is a temporary workaround for issue #85335.
+
+LLVM_LIBC_FUNCTION(int, remove, (const char *)) { return -1; }
+
+} // namespace LIBC_NAMESPACE