summaryrefslogtreecommitdiff
path: root/rt/start-netbsd.s
diff options
context:
space:
mode:
Diffstat (limited to 'rt/start-netbsd.s')
-rw-r--r--rt/start-netbsd.s9
1 files changed, 0 insertions, 9 deletions
diff --git a/rt/start-netbsd.s b/rt/start-netbsd.s
index d78559e..bd2d576 100644
--- a/rt/start-netbsd.s
+++ b/rt/start-netbsd.s
@@ -45,15 +45,6 @@ _start:
subq %rax,%rsp
movq %rsp, %rdx /* saved args[:] */
- /* stack allocate sizeof(byte[:])*(argc + len(envp)) */
- movq (%rbp),%rax
- leaq 16(%rbp,%rax,8), %rbx /* argp = argv + 8*argc + 8 */
- call count
- addq %r9,%rax
- imulq $16,%rax
- subq %rax,%rsp
- movq %rsp, %rdx /* saved args[:] */
-
/* convert envp to byte[:][:] for sys._environment */
movq (%rbp),%rax
leaq 16(%rbp,%rax,8), %rbx /* envp = argv + 8*argc + 8 */