summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-16 12:55:34 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-16 12:55:34 +0100
commit0e832a9329cc4d4647e1ce529846073f21e66991 (patch)
tree8e73a766ab5f8d8c7d6c35227756f50bc61156d9 /makefile
parent383b4ca16cfd6d99de7335facad9a9f8eaf43341 (diff)
Fix several segv issues and improve x86_64 startup code
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index 07f101f1..fc9e72f1 100644
--- a/makefile
+++ b/makefile
@@ -82,7 +82,6 @@ KBUILD_CFLAGS += -fno-PIE
KBUILD_CFLAGS += -fstrict-aliasing
KBUILD_CFLAGS += -fno-delete-null-pointer-checks
-KBUILD_CFLAGS += -flto
# Disable overflow optimizations
KBUILD_CFLAGS += -fno-strict-overflow
@@ -104,6 +103,7 @@ KBUILD_CFLAGS += -g -Og -fno-omit-frame-pointer
else
KBUILD_CFLAGS += -O2 -fdata-sections -ffunction-sections
KBUILD_CFLAGS += -fno-unwind-tables -fomit-frame-pointer
+KBUILD_CFLAGS += -flto
KBUILD_LDFLAGS += --gc-sections
KBUILD_LDFLAGS += --build-id=none