fix(build): Add -fno-pie and -fno-pic for standard Linux GCC toolchains

This commit is contained in:
subhobhai943 committed 2026-08-16 21:35:03 +05:30
1 parent 9723e079b9
commit eed9f5afff
2 files changed
+9 -6

No files matched your search

+3 -1
View File
@@ -16,6 +16,8 @@ BOOT_DIR = boot
# Target Architecture Flags
CFLAGS = -ffreestanding \
-fno-pie \
-fno-pic \
-mno-red-zone \
-mno-mmx \
-mno-sse \
@@ -31,7 +33,7 @@ CFLAGS = -ffreestanding \
ASMFLAGS_ELF = -f elf64
ASMFLAGS_BOOT = -f bin -I$(BOOT_DIR)/
LDFLAGS = -nostdlib -T linker.ld
LDFLAGS = -nostdlib -no-pie -T linker.ld
# Source Files Discovery
ARCH_C_SRCS = $(shell find arch -name '*.c' 2>/dev/null)