summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_openbsd_amd64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_openbsd_amd64.s')
-rw-r--r--src/pkg/runtime/rt0_openbsd_amd64.s8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkg/runtime/rt0_openbsd_amd64.s b/src/pkg/runtime/rt0_openbsd_amd64.s
index 245a4c0f9..b1ad403b7 100644
--- a/src/pkg/runtime/rt0_openbsd_amd64.s
+++ b/src/pkg/runtime/rt0_openbsd_amd64.s
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-TEXT _rt0_amd64_openbsd(SB),7,$-8
+#include "../../cmd/ld/textflag.h"
+
+TEXT _rt0_amd64_openbsd(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv
MOVQ 0(SP), DI // argc
MOVQ $main(SB), AX
JMP AX
-TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+TEXT main(SB),NOSPLIT,$-8
+ MOVQ $_rt0_go(SB), AX
JMP AX