shithub: scc

ref: b2fdb4fc96e55083316e80a1c42dafea7b8184fc
dir: /src/libc/arch/arm64/crt-posix.s/

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

	.text
	.globl	_start
_start:
	ldr	x0,[sp]		/* argc */
	add	x1,sp,#8	/* argv */
	add	x2,x1,x0,lsl #3	/* argv = argc + 8*argc + 8 */
	add	x2,x2,#8
	adr	x3,_environ
	str	x2,[x3]
	bl	main
	b	exit