LEFT | RIGHT |
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 TEXT _rt0_amd64_linux(SB),7,$-8 | 5 #include "../../cmd/ld/textflag.h" |
| 6 |
| 7 TEXT _rt0_amd64_linux(SB),NOSPLIT,$-8 |
6 LEAQ 8(SP), SI // argv | 8 LEAQ 8(SP), SI // argv |
7 MOVQ 0(SP), DI // argc | 9 MOVQ 0(SP), DI // argc |
8 MOVQ $main(SB), AX | 10 MOVQ $main(SB), AX |
9 JMP AX | 11 JMP AX |
10 | 12 |
11 TEXT main(SB),7,$-8 | 13 TEXT main(SB),NOSPLIT,$-8 |
12 » MOVQ» $_rt0_amd64(SB), AX | 14 » MOVQ» $_rt0_go(SB), AX |
13 JMP AX | 15 JMP AX |
14 | 16 |
15 TEXT _rt0_amd64_linux_lib(SB),7,$-8 | 17 TEXT _rt0_amd64_linux_lib(SB),NOSPLIT,$0 |
16 » MOVB» $1, runtime·islibrary(SB) | 18 » MOVQ $_rt0_go(SB), DI |
17 | 19 » MOVQ _cgo_lib_setup(SB), AX |
| 20 » CALL» AX |
18 RET | 21 RET |
LEFT | RIGHT |