summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-16 12:55:34 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-16 12:55:34 +0100
commit0e832a9329cc4d4647e1ce529846073f21e66991 (patch)
tree8e73a766ab5f8d8c7d6c35227756f50bc61156d9 /bin
parent383b4ca16cfd6d99de7335facad9a9f8eaf43341 (diff)
Fix several segv issues and improve x86_64 startup code
Diffstat (limited to 'bin')
-rw-r--r--bin/sync/arch/x86_64/sync.s6
-rw-r--r--bin/true/arch/x86_64/true.s2
2 files changed, 6 insertions, 2 deletions
diff --git a/bin/sync/arch/x86_64/sync.s b/bin/sync/arch/x86_64/sync.s
index f1fc7ffc..6b099d27 100644
--- a/bin/sync/arch/x86_64/sync.s
+++ b/bin/sync/arch/x86_64/sync.s
@@ -1,5 +1,9 @@
.globl _start
_start:
- mov 162, %rax
+ mov $162, %rax
+ syscall
+
+ mov $60, %rax
+ xor %rdi, %rdi
syscall
diff --git a/bin/true/arch/x86_64/true.s b/bin/true/arch/x86_64/true.s
index 9e5ab682..6eabd296 100644
--- a/bin/true/arch/x86_64/true.s
+++ b/bin/true/arch/x86_64/true.s
@@ -1,6 +1,6 @@
.globl _start
_start:
- mov 60, %rax
+ mov $60, %rax
xor %rdi, %rdi
syscall