refactor: libc - share printf, split the float path, fix relink deps

This commit is contained in:
2026-08-04 17:29:24 +02:00
parent edc3452d61
commit 75d92d560c
39 changed files with 388 additions and 586 deletions
+4
View File
@@ -39,9 +39,13 @@ CFLAGS := \
-isystem ../../include/libc \
-isystem $(shell $(CC) -print-file-name=include)
# -u _pf_putfloat forces liblibc.a's optional printf_float.o member to be
# linked: Lua formats floats (%.14g in lobject.c, %f/%e/%g via string.format),
# and vsnprintf only references the float conversions weakly.
LDFLAGS := \
-nostdlib \
-Wl,--gc-sections \
-Wl,-u,_pf_putfloat \
-T ../../link.ld
CORE_SRCS := \