From fcb533ff24e3ac5da0b9625196928620961f9402 Mon Sep 17 00:00:00 2001 From: Emin Arslan Date: Mon, 4 May 2026 10:55:02 +0300 Subject: [PATCH] fix: disable PIE for kernel build to fix linker error Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7841aca..ae4482c 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ $(TARGET): $(LINUX_SRCS) forth.h $(CC) $(CFLAGS) -static -nostdlib -ffreestanding -fno-stack-protector -o $@ $(LINUX_SRCS) $(KERNEL_TARGET): $(KERNEL_SRCS) forth.h $(KERNEL_LD) - $(CC) $(CFLAGS) -ffreestanding -nostdlib -fno-stack-protector -mno-red-zone -o $@ $(KERNEL_SRCS) -T$(KERNEL_LD) -Wl,--build-id=none + $(CC) $(CFLAGS) -ffreestanding -nostdlib -fno-stack-protector -mno-red-zone -fno-pie -no-pie -o $@ $(KERNEL_SRCS) -T$(KERNEL_LD) -Wl,--build-id=none clean: rm -f $(TARGET) $(KERNEL_TARGET)