summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_linux_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_linux_386.s')
-rw-r--r--src/pkg/runtime/rt0_linux_386.s10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pkg/runtime/rt0_linux_386.s b/src/pkg/runtime/rt0_linux_386.s
index 73cca5d98..c6f4159ce 100644
--- a/src/pkg/runtime/rt0_linux_386.s
+++ b/src/pkg/runtime/rt0_linux_386.s
@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-TEXT _rt0_386_linux(SB),7,$8
+#include "../../cmd/ld/textflag.h"
+
+TEXT _rt0_386_linux(SB),NOSPLIT,$8
MOVL 8(SP), AX
LEAL 12(SP), BX
MOVL AX, 0(SP)
@@ -11,10 +13,10 @@ TEXT _rt0_386_linux(SB),7,$8
CALL main(SB)
INT $3
-TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+TEXT main(SB),NOSPLIT,$0
+ JMP _rt0_go(SB)
-TEXT _fallback_vdso(SB),7,$0
+TEXT _fallback_vdso(SB),NOSPLIT,$0
INT $0x80
RET