Russ Cox | 4702c0e | 2009-03-31 15:45:12 -0700 | [diff] [blame] | 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 | // Darwin and Linux use the same linkage to main |
| 6 | |
| 7 | TEXT _rt0_386_linux(SB),7,$0 |
Russ Cox | e67a508 | 2009-09-30 13:47:15 -0700 | [diff] [blame^] | 8 | MOVL initcgo(SB), AX |
| 9 | TESTL AX, AX |
| 10 | JZ 2(PC) |
| 11 | CALL AX |
| 12 | |
Russ Cox | 4702c0e | 2009-03-31 15:45:12 -0700 | [diff] [blame] | 13 | JMP _rt0_386(SB) |
Russ Cox | e67a508 | 2009-09-30 13:47:15 -0700 | [diff] [blame^] | 14 | |
| 15 | GLOBL initcgo(SB), $4 |