OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "../../cmd/ld/textflag.h" | 5 #include "textflag.h" |
6 | 6 |
7 TEXT _rt0_amd64_freebsd(SB),NOSPLIT,$-8 | 7 TEXT _rt0_amd64_freebsd(SB),NOSPLIT,$-8 |
8 LEAQ 8(DI), SI // argv | 8 LEAQ 8(DI), SI // argv |
9 MOVQ 0(DI), DI // argc | 9 MOVQ 0(DI), DI // argc |
10 MOVQ $main(SB), AX | 10 MOVQ $main(SB), AX |
11 JMP AX | 11 JMP AX |
12 | 12 |
13 TEXT main(SB),NOSPLIT,$-8 | 13 TEXT main(SB),NOSPLIT,$-8 |
14 » MOVQ» $_rt0_go(SB), AX | 14 » MOVQ» $runtime·rt0_go(SB), AX |
15 JMP AX | 15 JMP AX |
OLD | NEW |