A naked and clean cross compiler has been created. Fixed a push qword issue that caused relocation truncation.

This commit is contained in:
secXsQuared1995 2017-02-02 23:08:43 -08:00
parent 6ce50485be
commit ce06ee6bbd
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
ASM := nasm
CC := x86_64-linux-gnu-gcc
LD := x86_64-linux-gnu-gcc
CC := x86_64-elf-gcc
LD := x86_64-elf-gcc
#Recursive Wildcard
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))

View File

@ -24,7 +24,8 @@ pop rax
push rax ; eflags
push rsi ; cs
push qword .reload ;rip
mov rax, .reload
push rax ;rip
iretq
.reload:
mov es,dx