shithub: scc

ref: 61d8ab34d1ccd7ffdc3fd0e3fe73bf1a87bf0af6
dir: /src/libc/arch/arm32/crt-posix.s/

View raw version
	.bss
	.globl	_environ
_environ:
	.word	0

	.text
	.globl	_start
_start:
	ldr	r0,[sp]		/* argc */
	add	r1,sp,#4	/* argv */
	add	r2,r1,r0,lsl #2	/* argv = argc + 4*argc + 4 */
	add	r2,r2,#4
	ldr	r3,=_environ
	str	r2,[r3]
	bl	main
	b	exit