BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / master / crt0.S

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)
.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