BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / commit / 03048a95d88cc7a78171393371f5c22a0250a014 / crt0.S

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)
diff --git a/crt0.S b/crt0.S
new file mode 100644
index 0000000..fb9f6b4
--- /dev/null
+++ b/crt0.S
@@ -0,0 +1,18 @@
+.section .text
+
+.global _start
+_start:
+	movl	0(%esp), %eax          # argc
+	leal	4(%esp), %edx          # argv
+	leal	8(%esp, %eax, 4), %ecx # envp
+
+	pushl	%ecx       # envp
+	pushl	%edx       # argv
+	pushl	%eax       # argc
+	xorl	%ebp, %ebp # mark first stack frame
+
+	call	main
+
+	pushl	%eax
+	call	exit
+.size _start, . - _start