From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/options/internal/gcc/initfini.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 lib/mlibc/options/internal/gcc/initfini.cpp (limited to 'lib/mlibc/options/internal/gcc/initfini.cpp') diff --git a/lib/mlibc/options/internal/gcc/initfini.cpp b/lib/mlibc/options/internal/gcc/initfini.cpp deleted file mode 100644 index b329f38..0000000 --- a/lib/mlibc/options/internal/gcc/initfini.cpp +++ /dev/null @@ -1,23 +0,0 @@ - -#include -#include -#include - -#include -#include - -typedef void (*InitPtr)(); - -extern InitPtr __CTOR_LIST__ [[ gnu::visibility("hidden") ]]; -extern InitPtr __CTOR_END__ [[ gnu::visibility("hidden") ]]; - -extern "C" [[ gnu::visibility("hidden") ]] void __mlibc_do_ctors() { - auto it = &__CTOR_LIST__; - while(it != &__CTOR_END__) - (*it++)(); -} - -extern "C" [[ gnu::visibility("hidden") ]] void __mlibc_do_dtors() { - mlibc::sys_libc_log("__mlibc_do_dtors() called"); -} - -- cgit v1.2.3