syscall: Convert textflags from numbers to symbols.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12773043
diff --git a/src/pkg/syscall/asm_darwin_386.s b/src/pkg/syscall/asm_darwin_386.s
index 3dbf37e..2ddfb3b 100644
--- a/src/pkg/syscall/asm_darwin_386.s
+++ b/src/pkg/syscall/asm_darwin_386.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for 386, Darwin
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
// Trap # in AX, args on stack above caller pc.
-TEXT ·Syscall(SB),7,$0-32
+TEXT ·Syscall(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-44
+TEXT ·Syscall6(SB),NOSPLIT,$0-44
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -61,7 +63,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-56
+TEXT ·Syscall9(SB),NOSPLIT,$0-56
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -91,7 +93,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-32
+TEXT ·RawSyscall(SB),NOSPLIT,$0-32
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -112,7 +114,7 @@
MOVL $0, 28(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-44
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
diff --git a/src/pkg/syscall/asm_darwin_amd64.s b/src/pkg/syscall/asm_darwin_amd64.s
index 5561c86..c1970b7 100644
--- a/src/pkg/syscall/asm_darwin_amd64.s
+++ b/src/pkg/syscall/asm_darwin_amd64.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for AMD64, Darwin
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64);
// Trap # in AX, args in DI SI DX, return in AX DX
-TEXT ·Syscall(SB),7,$0-64
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ 16(SP), DI
MOVQ 24(SP), SI
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-88
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ 16(SP), DI
MOVQ 24(SP), SI
@@ -58,7 +60,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-64
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
@@ -79,7 +81,7 @@
MOVQ $0, 56(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-88
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
diff --git a/src/pkg/syscall/asm_freebsd_386.s b/src/pkg/syscall/asm_freebsd_386.s
index 0a07566..d24216f 100644
--- a/src/pkg/syscall/asm_freebsd_386.s
+++ b/src/pkg/syscall/asm_freebsd_386.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for 386, FreeBSD
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
// Trap # in AX, args on stack above caller pc.
-TEXT ·Syscall(SB),7,$0-32
+TEXT ·Syscall(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-44
+TEXT ·Syscall6(SB),NOSPLIT,$0-44
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -61,7 +63,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-56
+TEXT ·Syscall9(SB),NOSPLIT,$0-56
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -91,7 +93,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-32
+TEXT ·RawSyscall(SB),NOSPLIT,$0-32
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -112,7 +114,7 @@
MOVL $0, 28(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-44
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
diff --git a/src/pkg/syscall/asm_freebsd_amd64.s b/src/pkg/syscall/asm_freebsd_amd64.s
index c340850..72279d0 100644
--- a/src/pkg/syscall/asm_freebsd_amd64.s
+++ b/src/pkg/syscall/asm_freebsd_amd64.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for AMD64, FreeBSD
//
@@ -11,7 +13,7 @@
// func Syscall9(trap int64, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int64)
// Trap # in AX, args in DI SI DX, return in AX DX
-TEXT ·Syscall(SB),7,$0-64
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ 16(SP), DI
MOVQ 24(SP), SI
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-88
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ 16(SP), DI
MOVQ 24(SP), SI
@@ -57,7 +59,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-112
+TEXT ·Syscall9(SB),NOSPLIT,$0-112
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX
MOVQ 16(SP), DI
@@ -90,7 +92,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-64
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
@@ -110,7 +112,7 @@
MOVQ $0, 56(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-88
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
diff --git a/src/pkg/syscall/asm_freebsd_arm.s b/src/pkg/syscall/asm_freebsd_arm.s
index 54216bb..8fb06da 100644
--- a/src/pkg/syscall/asm_freebsd_arm.s
+++ b/src/pkg/syscall/asm_freebsd_arm.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for ARM, FreeBSD
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
// func Syscall9(trap int32, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int32)
-TEXT ·Syscall(SB),7,$0-28
+TEXT ·Syscall(SB),NOSPLIT,$0-28
BL runtime·entersyscall(SB)
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
@@ -32,7 +34,7 @@
BL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-40
+TEXT ·Syscall6(SB),NOSPLIT,$0-40
BL runtime·entersyscall(SB)
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
@@ -57,7 +59,7 @@
BL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-52
+TEXT ·Syscall9(SB),NOSPLIT,$0-52
BL runtime·entersyscall(SB)
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
@@ -82,7 +84,7 @@
BL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-28
+TEXT ·RawSyscall(SB),NOSPLIT,$0-28
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
MOVW 8(FP), R2 // a2
@@ -101,7 +103,7 @@
MOVW R0, 24(FP) // err
RET
-TEXT ·RawSyscall6(SB),7,$0-40
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
MOVW 8(FP), R2 // a2
diff --git a/src/pkg/syscall/asm_linux_386.s b/src/pkg/syscall/asm_linux_386.s
index 5ef5af1..cf2ab02 100644
--- a/src/pkg/syscall/asm_linux_386.s
+++ b/src/pkg/syscall/asm_linux_386.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System calls for 386, Linux
//
@@ -9,7 +11,7 @@
// func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr);
// Trap # in AX, args in BX CX DX SI DI, return in AX
-TEXT ·Syscall(SB),7,$0-32
+TEXT ·Syscall(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
MOVL 8(SP), BX
@@ -34,7 +36,7 @@
RET
// func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
-TEXT ·Syscall6(SB),7,$0-44
+TEXT ·Syscall6(SB),NOSPLIT,$0-44
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
MOVL 8(SP), BX
@@ -60,7 +62,7 @@
RET
// func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr);
-TEXT ·RawSyscall(SB),7,$0-32
+TEXT ·RawSyscall(SB),NOSPLIT,$0-32
MOVL 4(SP), AX // syscall entry
MOVL 8(SP), BX
MOVL 12(SP), CX
@@ -82,7 +84,7 @@
RET
// func RawSyscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
-TEXT ·RawSyscall6(SB),7,$0-44
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
MOVL 4(SP), AX // syscall entry
MOVL 8(SP), BX
MOVL 12(SP), CX
@@ -108,7 +110,7 @@
// func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, errno int)
// Kernel interface gets call sub-number and pointer to a0.
-TEXT ·socketcall(SB),7,$0-40
+TEXT ·socketcall(SB),NOSPLIT,$0-40
CALL runtime·entersyscall(SB)
MOVL $SYS_SOCKETCALL, AX // syscall entry
MOVL 4(SP), BX // socket call number
@@ -132,7 +134,7 @@
// func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, errno int)
// Kernel interface gets call sub-number and pointer to a0.
-TEXT ·rawsocketcall(SB),7,$0-40
+TEXT ·rawsocketcall(SB),NOSPLIT,$0-40
MOVL $SYS_SOCKETCALL, AX // syscall entry
MOVL 4(SP), BX // socket call number
LEAL 8(SP), CX // pointer to call arguments
@@ -157,7 +159,7 @@
// taking the address of the return value newoffset.
// Underlying system call is
// llseek(int fd, int offhi, int offlo, int64 *result, int whence)
-TEXT ·Seek(SB),7,$0-32
+TEXT ·Seek(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL $SYS__LLSEEK, AX // syscall entry
MOVL 4(SP), BX // fd
diff --git a/src/pkg/syscall/asm_linux_amd64.s b/src/pkg/syscall/asm_linux_amd64.s
index 4c7a01b..28a2a58 100644
--- a/src/pkg/syscall/asm_linux_amd64.s
+++ b/src/pkg/syscall/asm_linux_amd64.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System calls for AMD64, Linux
//
@@ -11,7 +13,7 @@
// Note that this differs from "standard" ABI convention, which
// would pass 4th arg in CX, not R10.
-TEXT ·Syscall(SB),7,$0-64
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ 16(SP), DI
MOVQ 24(SP), SI
@@ -36,7 +38,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-88
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ 16(SP), DI
MOVQ 24(SP), SI
@@ -61,7 +63,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-64
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
@@ -83,7 +85,7 @@
MOVQ $0, 56(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-88
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
@@ -105,7 +107,7 @@
MOVQ $0, 80(SP) // errno
RET
-TEXT ·Gettimeofday(SB),7,$0-24
+TEXT ·Gettimeofday(SB),NOSPLIT,$0-24
MOVQ 8(SP), DI
MOVQ $0, SI
MOVQ runtime·__vdso_gettimeofday_sym(SB), AX
@@ -120,7 +122,7 @@
MOVQ $0, 16(SP) // errno
RET
-TEXT ·Time(SB),7,$0-32
+TEXT ·Time(SB),NOSPLIT,$0-32
MOVQ 8(SP), DI
MOVQ runtime·__vdso_time_sym(SB), AX
CALL AX
diff --git a/src/pkg/syscall/asm_linux_arm.s b/src/pkg/syscall/asm_linux_arm.s
index a1158ff..bf54b4f 100644
--- a/src/pkg/syscall/asm_linux_arm.s
+++ b/src/pkg/syscall/asm_linux_arm.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System calls for arm, Linux
//
@@ -10,7 +12,7 @@
// func Syscall(syscall uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr);
-TEXT ·Syscall(SB),7,$0-28
+TEXT ·Syscall(SB),NOSPLIT,$0-28
BL runtime·entersyscall(SB)
MOVW 4(SP), R7
MOVW 8(SP), R0
@@ -38,7 +40,7 @@
// func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
// Actually Syscall5 but the rest of the code expects it to be named Syscall6.
-TEXT ·Syscall6(SB),7,$0-40
+TEXT ·Syscall6(SB),NOSPLIT,$0-40
BL runtime·entersyscall(SB)
MOVW 4(SP), R7 // syscall entry
MOVW 8(SP), R0
@@ -69,7 +71,7 @@
// func RawSyscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
// Actually RawSyscall5 but the rest of the code expects it to be named RawSyscall6.
-TEXT ·RawSyscall6(SB),7,$0-40
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
MOVW 4(SP), R7 // syscall entry
MOVW 8(SP), R0
MOVW 12(SP), R1
@@ -101,7 +103,7 @@
// taking the address of the return value newoffset.
// Underlying system call is
// llseek(int fd, int offhi, int offlo, int64 *result, int whence)
-TEXT ·Seek(SB),7,$0-32
+TEXT ·Seek(SB),NOSPLIT,$0-32
BL runtime·entersyscall(SB)
MOVW $SYS__LLSEEK, R7 // syscall entry
MOVW 4(SP), R0 // fd
@@ -128,7 +130,7 @@
RET
// func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr);
-TEXT ·RawSyscall(SB),7,$0-28
+TEXT ·RawSyscall(SB),NOSPLIT,$0-28
MOVW 4(SP), R7 // syscall entry
MOVW 8(SP), R0
MOVW 12(SP), R1
diff --git a/src/pkg/syscall/asm_netbsd_386.s b/src/pkg/syscall/asm_netbsd_386.s
index 078cfcc..8caade2 100644
--- a/src/pkg/syscall/asm_netbsd_386.s
+++ b/src/pkg/syscall/asm_netbsd_386.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for 386, NetBSD
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
// Trap # in AX, args on stack above caller pc.
-TEXT ·Syscall(SB),7,$0-32
+TEXT ·Syscall(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-44
+TEXT ·Syscall6(SB),NOSPLIT,$0-44
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -61,7 +63,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-56
+TEXT ·Syscall9(SB),NOSPLIT,$0-56
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -91,7 +93,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-32
+TEXT ·RawSyscall(SB),NOSPLIT,$0-32
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -112,7 +114,7 @@
MOVL $0, 28(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-44
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
diff --git a/src/pkg/syscall/asm_netbsd_amd64.s b/src/pkg/syscall/asm_netbsd_amd64.s
index 69b6585..e0b8b3c 100644
--- a/src/pkg/syscall/asm_netbsd_amd64.s
+++ b/src/pkg/syscall/asm_netbsd_amd64.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for AMD64, NetBSD
//
@@ -11,7 +13,7 @@
// func Syscall9(trap int64, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int64);
// Trap # in AX, args in DI SI DX, return in AX DX
-TEXT ·Syscall(SB),7,$0-64
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX // syscall entry
MOVQ 16(SP), DI
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-88
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX // syscall entry
MOVQ 16(SP), DI
@@ -57,7 +59,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-112
+TEXT ·Syscall9(SB),NOSPLIT,$0-112
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX // syscall entry
MOVQ 16(SP), DI
@@ -89,7 +91,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-64
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
@@ -109,7 +111,7 @@
MOVQ $0, 56(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-88
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
diff --git a/src/pkg/syscall/asm_netbsd_arm.s b/src/pkg/syscall/asm_netbsd_arm.s
index bb8b6c3..2c0d654 100644
--- a/src/pkg/syscall/asm_netbsd_arm.s
+++ b/src/pkg/syscall/asm_netbsd_arm.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for ARM, NetBSD
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
// func Syscall9(trap int32, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int32)
-TEXT ·Syscall(SB),7,$0-28
+TEXT ·Syscall(SB),NOSPLIT,$0-28
BL runtime·entersyscall(SB)
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
@@ -32,7 +34,7 @@
BL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-40
+TEXT ·Syscall6(SB),NOSPLIT,$0-40
BL runtime·entersyscall(SB)
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
@@ -57,7 +59,7 @@
BL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-52
+TEXT ·Syscall9(SB),NOSPLIT,$0-52
BL runtime·entersyscall(SB)
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
@@ -82,7 +84,7 @@
BL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-28
+TEXT ·RawSyscall(SB),NOSPLIT,$0-28
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
MOVW 8(FP), R2 // a2
@@ -101,7 +103,7 @@
MOVW R0, 24(FP) // err
RET
-TEXT ·RawSyscall6(SB),7,$0-40
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
MOVW 0(FP), R0 // sigcall num
MOVW 4(FP), R1 // a1
MOVW 8(FP), R2 // a2
diff --git a/src/pkg/syscall/asm_openbsd_386.s b/src/pkg/syscall/asm_openbsd_386.s
index 3872731..a383496 100644
--- a/src/pkg/syscall/asm_openbsd_386.s
+++ b/src/pkg/syscall/asm_openbsd_386.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for 386, OpenBSD
//
@@ -10,7 +12,7 @@
// func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
// Trap # in AX, args on stack above caller pc.
-TEXT ·Syscall(SB),7,$0-32
+TEXT ·Syscall(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-44
+TEXT ·Syscall6(SB),NOSPLIT,$0-44
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -61,7 +63,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-56
+TEXT ·Syscall9(SB),NOSPLIT,$0-56
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -91,7 +93,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-32
+TEXT ·RawSyscall(SB),NOSPLIT,$0-32
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -112,7 +114,7 @@
MOVL $0, 28(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-44
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
diff --git a/src/pkg/syscall/asm_openbsd_amd64.s b/src/pkg/syscall/asm_openbsd_amd64.s
index db0d31f..1bf25f1 100644
--- a/src/pkg/syscall/asm_openbsd_amd64.s
+++ b/src/pkg/syscall/asm_openbsd_amd64.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for AMD64, OpenBSD
//
@@ -11,7 +13,7 @@
// func Syscall9(trap int64, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int64);
// Trap # in AX, args in DI SI DX, return in AX DX
-TEXT ·Syscall(SB),7,$0-64
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX // syscall entry
MOVQ 16(SP), DI
@@ -34,7 +36,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-88
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX // syscall entry
MOVQ 16(SP), DI
@@ -57,7 +59,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall9(SB),7,$0-112
+TEXT ·Syscall9(SB),NOSPLIT,$0-112
CALL runtime·entersyscall(SB)
MOVQ 8(SP), AX // syscall entry
MOVQ 16(SP), DI
@@ -89,7 +91,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-64
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
@@ -109,7 +111,7 @@
MOVQ $0, 56(SP) // errno
RET
-TEXT ·RawSyscall6(SB),7,$0-88
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ 16(SP), DI
MOVQ 24(SP), SI
MOVQ 32(SP), DX
diff --git a/src/pkg/syscall/asm_plan9_386.s b/src/pkg/syscall/asm_plan9_386.s
index 3661261..7ebd206 100644
--- a/src/pkg/syscall/asm_plan9_386.s
+++ b/src/pkg/syscall/asm_plan9_386.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for 386, Plan 9
//
@@ -12,7 +14,7 @@
//func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
// Trap # in AX, args on stack above caller pc.
-TEXT ·Syscall(SB),7,$0-32
+TEXT ·Syscall(SB),NOSPLIT,$0-32
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -47,7 +49,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-44
+TEXT ·Syscall6(SB),NOSPLIT,$0-44
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -85,7 +87,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-32
+TEXT ·RawSyscall(SB),NOSPLIT,$0-32
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -100,7 +102,7 @@
MOVL AX, err+28(SP)
RET
-TEXT ·RawSyscall6(SB),7,$0-44
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-44
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -121,7 +123,7 @@
#define SYS_SEEK 39 /* from zsysnum_plan9_386.go */
//func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string)
-TEXT ·seek(SB),7,$0-40
+TEXT ·seek(SB),NOSPLIT,$0-40
LEAL newoffset+24(SP), AX
MOVL AX, placeholder+4(SP)
@@ -152,7 +154,7 @@
//func exit(code int)
// Import runtime·exit for cleanly exiting.
-TEXT ·exit(SB),7,$4-4
+TEXT ·exit(SB),NOSPLIT,$4-4
MOVL code+0(FP), AX
MOVL AX, 0(SP)
CALL runtime·exit(SB)
diff --git a/src/pkg/syscall/asm_plan9_amd64.s b/src/pkg/syscall/asm_plan9_amd64.s
index 0cbf637..880bf7c 100644
--- a/src/pkg/syscall/asm_plan9_amd64.s
+++ b/src/pkg/syscall/asm_plan9_amd64.s
@@ -2,6 +2,8 @@
// 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"
+
//
// System call support for Plan 9
//
@@ -14,7 +16,7 @@
// Trap # in BP, args on stack above caller pc.
// NxM requires that Plan 9 system calls be
// marked with $0x8000 in AX.
-TEXT ·Syscall(SB),7,$0-64
+TEXT ·Syscall(SB),NOSPLIT,$0-64
CALL runtime·entersyscall(SB)
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
@@ -50,7 +52,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·Syscall6(SB),7,$0-88
+TEXT ·Syscall6(SB),NOSPLIT,$0-88
CALL runtime·entersyscall(SB)
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
@@ -89,7 +91,7 @@
CALL runtime·exitsyscall(SB)
RET
-TEXT ·RawSyscall(SB),7,$0-64
+TEXT ·RawSyscall(SB),NOSPLIT,$0-64
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
// slide args down on top of system call number
@@ -105,7 +107,7 @@
MOVQ AX, err+56(SP)
RET
-TEXT ·RawSyscall6(SB),7,$0-88
+TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
MOVQ $0x8000, AX // for NxM
MOVQ 8(SP), BP // syscall entry
// slide args down on top of system call number
@@ -127,7 +129,7 @@
#define SYS_SEEK 39 /* from zsysnum_plan9_amd64.go */
//func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string)
-TEXT ·seek(SB),7,$0-64
+TEXT ·seek(SB),NOSPLIT,$0-64
LEAQ newoffset+40(SP), AX
MOVQ AX, placeholder+8(SP)
@@ -158,7 +160,7 @@
//func exit(code int)
// Import runtime·exit for cleanly exiting.
-TEXT ·exit(SB),7,$8-4
+TEXT ·exit(SB),NOSPLIT,$8-4
MOVQ code+0(FP), AX
MOVQ AX, 0(SP)
CALL runtime·exit(SB)