From e54bf247468bd9d316ffe059bd7b3f923363478e Mon Sep 17 00:00:00 2001 From: Mecso2 Date: Wed, 30 Jul 2025 12:44:53 +0200 Subject: [PATCH] fix amd64 no-crt entry assembly --- base/runtime/entry_unix_no_crt_amd64.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/runtime/entry_unix_no_crt_amd64.asm b/base/runtime/entry_unix_no_crt_amd64.asm index f0bdce8d7..1d2d3ccea 100644 --- a/base/runtime/entry_unix_no_crt_amd64.asm +++ b/base/runtime/entry_unix_no_crt_amd64.asm @@ -35,7 +35,7 @@ _start: xor rbp, rbp ;; Load argc into 1st param reg, argv into 2nd param reg pop rdi - mov rdx, rsi + mov rsi, rsp ;; Align stack pointer down to 16-bytes (sysv calling convention) and rsp, -16 ;; Call into odin entry point