summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_freebsd_arm.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_freebsd_arm.s')
-rw-r--r--src/pkg/runtime/rt0_freebsd_arm.s9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pkg/runtime/rt0_freebsd_arm.s b/src/pkg/runtime/rt0_freebsd_arm.s
index 085fccf9d..d11087639 100644
--- a/src/pkg/runtime/rt0_freebsd_arm.s
+++ b/src/pkg/runtime/rt0_freebsd_arm.s
@@ -2,7 +2,12 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+#include "../../cmd/ld/textflag.h"
+
// FreeBSD and Linux use the same linkage to main
-TEXT _rt0_arm_freebsd(SB),7,$-4
- B _rt0_arm(SB)
+TEXT _rt0_arm_freebsd(SB),NOSPLIT,$-4
+ MOVW (R13), R0 // argc
+ MOVW $4(R13), R1 // argv
+ MOVM.DB.W [R0-R1], (R13)
+ B _rt0_go(SB)