diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | src/c_bsdsetsid.S | 3 | 
2 files changed, 2 insertions, 2 deletions
| @@ -29,7 +29,6 @@ OBJS		 = ${SRCS:.S=.o}  AS			 = yasm  ASFLAGS		 = -felf64  ASFLAGS		+= -pgas -ASFLAGS		+= -gdwarf2  CC			 = cc diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S index 4d202dd..55807e1 100644 --- a/src/c_bsdsetsid.S +++ b/src/c_bsdsetsid.S @@ -3,7 +3,8 @@  c_main:  	movq	$0x1, %rdi -	leaq	str, %rsi +	xorq	%rcx, %rcx +	movq	8(%rsp, %rcx, 8), %rsi  	movq	$0xa, %rdx  	movb	$0x4, %al  	syscall | 
