GDT finally works
This commit is contained in:
22
kernel/arch/x86_64/x86_64.mk
Normal file
22
kernel/arch/x86_64/x86_64.mk
Normal file
@ -0,0 +1,22 @@
|
||||
CC := x86_64-elf-gcc
|
||||
LD := x86_64-elf-ld
|
||||
|
||||
CFLAGS += -m64 \
|
||||
-fPIE \
|
||||
-mno-80387 \
|
||||
-mno-mmx \
|
||||
-mno-sse \
|
||||
-nostartfiles \
|
||||
-nostdlib \
|
||||
-mno-sse2 \
|
||||
-mno-red-zone \
|
||||
-fno-stack-protector \
|
||||
-fno-stack-check \
|
||||
-fno-lto
|
||||
|
||||
LDFLAGS += -m elf_x86_64 \
|
||||
-pie \
|
||||
--no-dynamic-linker \
|
||||
-z text \
|
||||
-z max-page-size=0x1000
|
||||
|
Reference in New Issue
Block a user