aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <JozanLeClerc@noemail.net>2020-11-18 16:47:07 +0000
committerJozanLeClerc <JozanLeClerc@noemail.net>2020-11-18 16:47:07 +0000
commit951057273ebb90bf752106ed9a3ea149c7077f4b (patch)
treef07c3bf4d1e2efc43bdcd3580d6f2fb06f2679dd
parentFinally Makefile is goodio (diff)
downloadbsdsetsid-951057273ebb90bf752106ed9a3ea149c7077f4b.tar.gz
bsdsetsid-951057273ebb90bf752106ed9a3ea149c7077f4b.tar.bz2
bsdsetsid-951057273ebb90bf752106ed9a3ea149c7077f4b.tar.xz
bsdsetsid-951057273ebb90bf752106ed9a3ea149c7077f4b.tar.zst
bsdsetsid-951057273ebb90bf752106ed9a3ea149c7077f4b.zip
In progress
FossilOrigin-Name: b0bb584d5675f1f2e8a015cbec044393165308c2
-rw-r--r--Makefile1
-rw-r--r--src/c_bsdsetsid.S3
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9214784..014db8f 100644
--- a/Makefile
+++ b/Makefile
@@ -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