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 | |
Keith Randall | 0273dc1 | 2013-08-07 12:20:05 -0700 | [diff] [blame] | 5 | #include "../../cmd/ld/textflag.h" |
| 6 | |
| 7 | TEXT _rt0_386_linux(SB),NOSPLIT,$8 |
Russ Cox | dfc22e29 | 2013-03-07 19:57:10 -0800 | [diff] [blame] | 8 | MOVL 8(SP), AX |
| 9 | LEAL 12(SP), BX |
| 10 | MOVL AX, 0(SP) |
| 11 | MOVL BX, 4(SP) |
Yuval Pavel Zholkover | c20a338 | 2011-08-29 10:36:06 -0400 | [diff] [blame] | 12 | CALL runtime·linux_setup_vdso(SB) |
Russ Cox | dfc22e29 | 2013-03-07 19:57:10 -0800 | [diff] [blame] | 13 | CALL main(SB) |
| 14 | INT $3 |
| 15 | |
Keith Randall | 0273dc1 | 2013-08-07 12:20:05 -0700 | [diff] [blame] | 16 | TEXT main(SB),NOSPLIT,$0 |
Russ Cox | 6120ef0 | 2013-06-11 16:49:24 -0400 | [diff] [blame] | 17 | JMP _rt0_go(SB) |
Yuval Pavel Zholkover | c20a338 | 2011-08-29 10:36:06 -0400 | [diff] [blame] | 18 | |
Keith Randall | 0273dc1 | 2013-08-07 12:20:05 -0700 | [diff] [blame] | 19 | TEXT _fallback_vdso(SB),NOSPLIT,$0 |
Yuval Pavel Zholkover | c20a338 | 2011-08-29 10:36:06 -0400 | [diff] [blame] | 20 | INT $0x80 |
| 21 | RET |
| 22 | |
| 23 | DATA runtime·_vdso(SB)/4, $_fallback_vdso(SB) |
| 24 | GLOBL runtime·_vdso(SB), $4 |
Russ Cox | e67a508 | 2009-09-30 13:47:15 -0700 | [diff] [blame] | 25 | |