Reduce binary sizes for the kernel and userspace apps

This commit is contained in:
2025-11-15 23:56:16 +01:00
parent e66fe4030d
commit 0a43ba36cd
7 changed files with 24 additions and 7 deletions

View File

@ -13,4 +13,8 @@ CFLAGS += -m64 \
-fno-strict-aliasing \
-O0 \
-mno-tls-direct-seg-refs \
# -fsanitize=undefined
-fdata-sections \
-ffunction-sections \
LDFLAGS += --gc-sections \
--strip-all