summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-19 12:55:47 -0400
committerOri Bernstein <ori@eigenstate.org>2015-09-19 12:55:47 -0400
commit54daa7961f3639adc9965ffa4ddf98e4ab0f2ff9 (patch)
treec74f0da8a19669c499ddff51c856680d6f461500 /rt
parentf0c4423afd2dc42988af0e9b7fdcd1371e2fda73 (diff)
downloadmc-54daa7961f3639adc9965ffa4ddf98e4ab0f2ff9.tar.gz
Compile on FreeBSD.
Things are still broken, but we've got a start.
Diffstat (limited to 'rt')
-rw-r--r--rt/start-freebsd.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/rt/start-freebsd.s b/rt/start-freebsd.s
index 193d922..9f5dd2d 100644
--- a/rt/start-freebsd.s
+++ b/rt/start-freebsd.s
@@ -1,14 +1,14 @@
.data
/* std._environment : byte[:][:] */
-.globl std$_environment
-std$_environment:
+.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
@@ -37,7 +37,7 @@ _start:
movq (%rdi),%rax
leaq 16(%rdi,%rax,8), %rbx /* envp = argv + 8*argc + 8 */
/* store envp for some syscalls to use without spurious conversion. */
- movq %rbx,std$__cenvp(%rip)
+ movq %rbx,sys$__cenvp(%rip)
movq %r9,%rax
movq %rsp, %rcx
movq %r9,.envlen