ref: 7541780143bee3d4fbb18f4d9c4fea2c29f1587a
parent: a95129996beaf2388eda0cc8864c0a4d3628b56a
author: Ori Bernstein <[email protected]>
date: Thu Sep 27 11:28:34 EDT 2012
Add start symbol for OSX.
--- /dev/null
+++ b/libstd/start-osx.s
@@ -1,0 +1,11 @@
+.globl start
+start:
+ /* turn args into a slice */
+ /* TODO */
+ /* enter the main program */
+ call _main
+ /* exit */
+ movq %rax,%rdi
+ movq $60,%rax
+ syscall
+