summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_darwin_386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_darwin_386.s')
-rw-r--r--src/pkg/runtime/rt0_darwin_386.s8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkg/runtime/rt0_darwin_386.s b/src/pkg/runtime/rt0_darwin_386.s
index 4b4c1f294..4f85250c2 100644
--- a/src/pkg/runtime/rt0_darwin_386.s
+++ b/src/pkg/runtime/rt0_darwin_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_darwin(SB),7,$8
+#include "../../cmd/ld/textflag.h"
+
+TEXT _rt0_386_darwin(SB),NOSPLIT,$8
MOVL 8(SP), AX
LEAL 12(SP), BX
MOVL AX, 0(SP)
@@ -10,5 +12,5 @@ TEXT _rt0_386_darwin(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)