From b4ca1c535b5a60fd001ac236473dea60ef2cc11b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 18 Nov 2020 17:18:29 +0000 Subject: I can read argv and envp now FossilOrigin-Name: ed1a354861dd972af6f64ba661477ba6d25b5864 --- src/c_bsdsetsid.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S index 55807e1..29eacdc 100644 --- a/src/c_bsdsetsid.S +++ b/src/c_bsdsetsid.S @@ -4,7 +4,8 @@ c_main: movq $0x1, %rdi xorq %rcx, %rcx - movq 8(%rsp, %rcx, 8), %rsi + inc %rcx + movq (%rdx, %rcx, 8), %rsi movq $0xa, %rdx movb $0x4, %al syscall -- cgit v1.2.3