shithub: scc

ref: 61cec444584284bf3e9ca8aa8fbcbd442cbff56c
dir: /src/libcrt/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