user: implement mlibc as the libc, finally.

It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
kaguya
2026-05-02 03:31:49 -04:00
parent 2fa39ad85a
commit 9a9b91c940
2387 changed files with 152741 additions and 315 deletions
@@ -0,0 +1,6 @@
// We build an empty libdl because g++ always links with -ldl
// The actual functions reside inside libc
extern "C" void __mlibc_libdl_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty libm because g++ always links with -lm
// The actual math functions reside inside libc
extern "C" void __mlibc_libm_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty libpthread because g++ always links with -lpthread
// The actual functions reside inside libc
extern "C" void __mlibc_libpthread_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty libresolv because some programs always links with -lresolv
// The actual functions reside inside libc
extern "C" void __mlibc_libresolv_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty librt because g++ always links with -lrt
// The actual functions reside inside libc
extern "C" void __mlibc_librt_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty libsso because some packages expect -lssp
// The actual ssp functions are provided by libc.
extern "C" void __mlibc_libssp_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty libsso because some packages expect -lssp_nonshared
// The actual ssp functions are provided by libc.
extern "C" void __mlibc_libssp_nonshared_dummy(void) { }
@@ -0,0 +1,6 @@
// We build an empty libutil because g++ always links with -lutil
// The actual functions reside inside libc
extern "C" void __mlibc_libutil_dummy(void) { }