[libc-commits] [libc] Enable bare-metal hermetic tests on Arm (PR #207361)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jul 7 01:11:25 PDT 2026


================
@@ -0,0 +1,162 @@
+/*===----------------------------------------------------------------------===*
+ *
+ * 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
+ *
+ *===----------------------------------------------------------------------===*
+ *
+ * \file
+ * Bare-metal LLVM libc test linker script.
+ *
+ *===----------------------------------------------------------------------===*/
+
+ASSERT(DEFINED(__boot_flash), "__boot_flash must be defined");
+ASSERT(DEFINED(__boot_flash_size), "__boot_flash_size must be defined");
+ASSERT(DEFINED(__flash), "__flash must be defined");
+ASSERT(DEFINED(__flash_size), "__flash_size must be defined");
+ASSERT(DEFINED(__ram), "__ram must be defined");
+ASSERT(DEFINED(__ram_size), "__ram_size must be defined");
----------------
petrhosek wrote:

Since this linker script is only intended for testing, could we hardcode these for simplicity?

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


More information about the libc-commits mailing list