summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-06 20:10:10 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-06 20:10:10 -0400
commitd5869067c222619979e82e95ca511cb1d217ce18 (patch)
tree77d7d023a92a65bf6bab3b85df8b169cfda02d7b /rt
parentfc03d6189b22d17ac7554ac3de5ab5d47f7d0030 (diff)
downloadmc-d5869067c222619979e82e95ca511cb1d217ce18.tar.gz
Fix symbol names.
Diffstat (limited to 'rt')
-rw-r--r--rt/start-osx.s16
1 files changed, 8 insertions, 8 deletions
diff --git a/rt/start-osx.s b/rt/start-osx.s
index 04bdf43..7a9ac40 100644
--- a/rt/start-osx.s
+++ b/rt/start-osx.s
@@ -1,14 +1,14 @@
.data
-/* std._environment : byte[:][:] */
-.globl _std$_environment
-_std$_environment:
+/* sys._environment : byte[:][:] */
+.globl _sys$__environment
+_sys$__environment:
.envbase:
.quad 0 /* env size */
.envlen:
.quad 0 /* env ptr */
-.globl _std$__cenvp
-_std$__cenvp:
+.globl _sys$__cenvp
+_sys$__cenvp:
.quad 0
.text
@@ -18,7 +18,7 @@ _std$__cenvp:
* - Sets up all argc entries as slices
* - Sets up all envp entries as slices
* - Converts argc/argv to a slice
- * - Stashes envp in std._environment
+ * - Stashes envp in sys._environment
* - Stashes a raw envp copy in __cenvp (for syscalls to use)
* - Calls main()
*/
@@ -35,10 +35,10 @@ start:
subq %rax,%rsp
movq %rsp, %rdx /* saved args[:] */
- /* convert envp to byte[:][:] for std._environment */
+ /* convert envp to byte[:][:] for sys._environment */
movq (%rbp),%rax
leaq 16(%rbp,%rax,8), %rbx /* envp = argv + 8*argc + 8 */
- movq %rbx,_std$__cenvp(%rip)
+ movq %rbx,_sys$__cenvp(%rip)
movq %r9,%rax
movq %rsp, %rcx
movq %r9,.envlen(%rip)