	.ifdef	NetBSD
	.section	.note.netbsd.ident, "a"
	.long	7			@ Name size
	.long	4			@ Description size
	.long	1
	.ascii	"NetBSD\000\000"
	.long	400000000		@ NetBSD version

	.endif
	.section	.text
	.global _start
	.type	_start, %function
_start:
	ldr	r3, [sp]		@ ARGC
	add	r1, sp, #8		@ ARGV
	add	r2, r1, r3, lsl #2	@ Compute envp
	ldr	r0, [sp, #4]		@ FILE
	bl	main
	.ifdef	NetBSD
	swi	#10485761		@ 10485760 + exit system call number
	.else
	mov	r7, #1			@ exit with status of main
	swi	#0
	.endif
