summaryrefslogtreecommitdiff
path: root/rt/start-linux.s
diff options
context:
space:
mode:
Diffstat (limited to 'rt/start-linux.s')
-rw-r--r--rt/start-linux.s20
1 files changed, 10 insertions, 10 deletions
diff --git a/rt/start-linux.s b/rt/start-linux.s
index 2164515..04c7029 100644
--- a/rt/start-linux.s
+++ b/rt/start-linux.s
@@ -49,29 +49,29 @@ _start:
/* convert envp to byte[:][:] for sys._environment */
movq (%rbp),%rax
leaq 16(%rbp,%rax,8), %rbx /* envp = argv + 8*argc + 8 */
- /* store envp for some syscalls to use without converting */
- movq %rbx,sys$__cenvp(%rip)
+ /* store envp for some syscalls to use without converting */
+ movq %rbx,sys$__cenvp(%rip)
movq %r9,%rax
movq %rsp, %rcx
- movq %r9,.envlen
- movq %rdx,.envbase
- call cvt
+ movq %r9,.envlen(%rip)
+ movq %rdx,.envbase(%rip)
+ call cvt
movq %rcx,%rdx
- /* convert argc, argv to byte[:][:] for args. */
+ /* convert argc, argv to byte[:][:] for args. */
movq (%rbp), %rax /* argc */
leaq 8(%rbp), %rbx /* argv */
movq (%rbp), %rsi /* saved argc */
- call cvt
- pushq %rsi
- pushq %rdx
+ call cvt
+ pushq %rsi
+ pushq %rdx
/* call pre-main initializers */
call __init__
/* enter the main program */
call main
/* exit(0) */
- xorq %rdi,%rdi
+ xorq %rdi,%rdi
movq $60,%rax
syscall