mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
fix(build): Add -fno-pie and -fno-pic for standard Linux GCC toolchains
This commit is contained in:
1 parent
9723e079b9
commit
eed9f5afff
2 files changed
+9
-6
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user