#if defined(__linux__)
#if defined(__m32r__)

	.section .text

	.globl	_start
	.type	_start, @function
_start:
	mv	r2, sp
	ldi	r0, #-16
	and	sp, r0

	ld	r0, @r2	/* argc */
	mv	r1, r2
	addi	r1, #4	/* argv */
	mv	r2, r0
	addi	r2, #1
	slli	r2, #2
	add	r2, r1	/* envp */

	bl	nlcrt_start
	nop

1:	bra	1b
	nop
#endif
#endif
