A naked and clean cross compiler has been created. Fixed a push qword issue that caused relocation truncation.
This commit is contained in:
parent
6ce50485be
commit
ce06ee6bbd
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue