shithub: scc

ref: 2d390f87f239823f51aa811504980688c24813cf
dir: /lib/crt/amd64-sysv-netbsd/crt.s/

View raw version
	.file	"crt.s"

	.section .note.netbsd.ident
	.long   7
	.long   4
	.long   1
	.ascii "NetBSD\0"
	.p2align 2
	.long      200000000

	.bss
environ:
	.quad	0

	.text
	.align	8
	.global	_start
_start:
	movq	%rsp,%rbp
	andq	$-16,%rsp
	movq	16(%rbp),%rbx
	movq	%rbx,environ
	call	main
	movl    %eax,%edi
	jmp	exit