Text file
src/runtime/rt0_freebsd_amd64.s
1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #include "textflag.h"
6
7 // On FreeBSD argc/argv are passed in DI, not SP, so we can't use _rt0_amd64.
8 TEXT _rt0_amd64_freebsd(SB),NOSPLIT,$-8
9 LEAQ 8(DI), SI // argv
10 MOVQ 0(DI), DI // argc
11 JMP runtime·rt0_go(SB)
12
13 TEXT _rt0_amd64_freebsd_lib(SB),NOSPLIT,$0
14 JMP _rt0_amd64_lib(SB)
15
View as plain text