summaryrefslogtreecommitdiff
path: root/rt/start-openbsd.s
diff options
context:
space:
mode:
Diffstat (limited to 'rt/start-openbsd.s')
-rw-r--r--rt/start-openbsd.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/rt/start-openbsd.s b/rt/start-openbsd.s
index b96e12b..d11dafa 100644
--- a/rt/start-openbsd.s
+++ b/rt/start-openbsd.s
@@ -25,6 +25,7 @@ sys$__cenvp:
.globl _start
_start:
movq %rsp,%rbp
+ andq $-16,%rsp /* align the stack pointer */
/* load argc, argv, envp from stack */
movq (%rbp),%rax /* argc */