[libc] Fix random SSE alignment GP faults

The libc CRT _start function had a stray pop left in it, which was
causing the stack to never be 16-byte aligned and thus causing crashes
when SSE instructions were called.
This commit is contained in:
Justin C. Miller
2023-04-09 15:20:17 -07:00
parent 459b40ad57
commit 2d8d4fd200

View File

@@ -17,7 +17,7 @@ _libc_crt0_start:
call __init_libc call __init_libc
pop rdi mov rdi, 0
mov rsi, rsp mov rsi, rsp
mov rdx, 0 ; TODO: actually parse stack for argc, argv, envp mov rdx, 0 ; TODO: actually parse stack for argc, argv, envp
mov rcx, rbx mov rcx, rbx