Index: libc/src/stdlib/baremetal/CMakeLists.txt
===================================================================
--- /dev/null
+++ libc/src/stdlib/baremetal/CMakeLists.txt
@@ -0,0 +1,7 @@
+add_entrypoint_object(
+  abort
+  SRCS
+    abort.cpp
+  HDRS
+    ../abort.h
+)
Index: libc/src/stdlib/baremetal/abort.cpp
===================================================================
--- /dev/null
+++ libc/src/stdlib/baremetal/abort.cpp
@@ -0,0 +1,19 @@
+//===-- Implementation of abort -------------------------------------------===//
+//
+// 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/__support/common.h"
+
+#include "src/stdlib/abort.h"
+
+namespace __llvm_libc {
+
+LLVM_LIBC_FUNCTION(void, abort, ()) {
+  __builtin_trap();
+}
+
+}