[libc-commits] [libc] [libc] Basic implementation of crt0 (PR #146863)

Victor Campos via libc-commits libc-commits at lists.llvm.org
Wed Jul 23 03:11:50 PDT 2025


================
@@ -0,0 +1,17 @@
+add_startup_object(
+  crt1
+  SRC
+    start.cpp
+  DEPENDS
+    libc.src.stdlib.atexit
+    libc.src.stdlib.exit
+    libc.src.string.memcpy
+    libc.src.string.memset
+    libc.startup.baremetal.init
+    libc.startup.baremetal.fini
+  COMPILE_OPTIONS
+    -ffreestanding # To avoid compiler warnings about calling the main function.
+    -fno-builtin
+    -Wno-global-constructors # To allow vector table initialization
+)
+get_fq_target_name(crt1 fq_name)
----------------
vhscampos wrote:

This line seems to be dead code

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


More information about the libc-commits mailing list