mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Merge pull request #5520 from Mecso2/master
fix amd64 no-crt entry assembly
This commit is contained in:
@@ -35,7 +35,7 @@ _start:
|
|||||||
xor rbp, rbp
|
xor rbp, rbp
|
||||||
;; Load argc into 1st param reg, argv into 2nd param reg
|
;; Load argc into 1st param reg, argv into 2nd param reg
|
||||||
pop rdi
|
pop rdi
|
||||||
mov rdx, rsi
|
mov rsi, rsp
|
||||||
;; Align stack pointer down to 16-bytes (sysv calling convention)
|
;; Align stack pointer down to 16-bytes (sysv calling convention)
|
||||||
and rsp, -16
|
and rsp, -16
|
||||||
;; Call into odin entry point
|
;; Call into odin entry point
|
||||||
|
|||||||
Reference in New Issue
Block a user