runtime: rename _rt0_$GOARCH to _rt0_go
There's no reason to use a different name on each architecture,
and doing so makes it impossible for portable code to refer to
the original Go runtime entry point. Rename it _rt0_go everywhere.
This is a global search and replace only.
R=golang-dev, bradfitz, minux.ma
CC=golang-dev
https://golang.org/cl/10196043
diff --git a/src/pkg/runtime/asm_386.s b/src/pkg/runtime/asm_386.s
index eb75de1..8c771c3 100644
--- a/src/pkg/runtime/asm_386.s
+++ b/src/pkg/runtime/asm_386.s
@@ -4,7 +4,7 @@
#include "zasm_GOOS_GOARCH.h"
-TEXT _rt0_386(SB),7,$0
+TEXT _rt0_go(SB),7,$0
// copy arguments forward on an even stack
MOVL argc+0(FP), AX
MOVL argv+4(FP), BX
diff --git a/src/pkg/runtime/asm_amd64.s b/src/pkg/runtime/asm_amd64.s
index 6408da4..7b7c1b5 100644
--- a/src/pkg/runtime/asm_amd64.s
+++ b/src/pkg/runtime/asm_amd64.s
@@ -4,7 +4,7 @@
#include "zasm_GOOS_GOARCH.h"
-TEXT _rt0_amd64(SB),7,$-8
+TEXT _rt0_go(SB),7,$-8
// copy arguments forward on an even stack
MOVQ DI, AX // argc
MOVQ SI, BX // argv
diff --git a/src/pkg/runtime/asm_arm.s b/src/pkg/runtime/asm_arm.s
index 8c7011e..892a742 100644
--- a/src/pkg/runtime/asm_arm.s
+++ b/src/pkg/runtime/asm_arm.s
@@ -5,7 +5,7 @@
#include "zasm_GOOS_GOARCH.h"
// using frame size $-4 means do not save LR on stack.
-TEXT _rt0_arm(SB),7,$-4
+TEXT _rt0_go(SB),7,$-4
MOVW $0xcafebabe, R12
// copy arguments forward on an even stack
diff --git a/src/pkg/runtime/rt0_darwin_386.s b/src/pkg/runtime/rt0_darwin_386.s
index 4b4c1f2..01e33e6 100644
--- a/src/pkg/runtime/rt0_darwin_386.s
+++ b/src/pkg/runtime/rt0_darwin_386.s
@@ -11,4 +11,4 @@
INT $3
TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
diff --git a/src/pkg/runtime/rt0_darwin_amd64.s b/src/pkg/runtime/rt0_darwin_amd64.s
index 45e69a0..d7aac30 100644
--- a/src/pkg/runtime/rt0_darwin_amd64.s
+++ b/src/pkg/runtime/rt0_darwin_amd64.s
@@ -9,5 +9,5 @@
JMP AX
TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
diff --git a/src/pkg/runtime/rt0_freebsd_386.s b/src/pkg/runtime/rt0_freebsd_386.s
index c84482c..a608593 100644
--- a/src/pkg/runtime/rt0_freebsd_386.s
+++ b/src/pkg/runtime/rt0_freebsd_386.s
@@ -11,4 +11,4 @@
INT $3
TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
diff --git a/src/pkg/runtime/rt0_freebsd_amd64.s b/src/pkg/runtime/rt0_freebsd_amd64.s
index e6c6fb9..0656e9f 100644
--- a/src/pkg/runtime/rt0_freebsd_amd64.s
+++ b/src/pkg/runtime/rt0_freebsd_amd64.s
@@ -9,5 +9,5 @@
JMP AX
TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
diff --git a/src/pkg/runtime/rt0_freebsd_arm.s b/src/pkg/runtime/rt0_freebsd_arm.s
index 085fccf..340b72c 100644
--- a/src/pkg/runtime/rt0_freebsd_arm.s
+++ b/src/pkg/runtime/rt0_freebsd_arm.s
@@ -5,4 +5,4 @@
// FreeBSD and Linux use the same linkage to main
TEXT _rt0_arm_freebsd(SB),7,$-4
- B _rt0_arm(SB)
+ B _rt0_go(SB)
diff --git a/src/pkg/runtime/rt0_linux_386.s b/src/pkg/runtime/rt0_linux_386.s
index 73cca5d..632d0a8 100644
--- a/src/pkg/runtime/rt0_linux_386.s
+++ b/src/pkg/runtime/rt0_linux_386.s
@@ -12,7 +12,7 @@
INT $3
TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
TEXT _fallback_vdso(SB),7,$0
INT $0x80
diff --git a/src/pkg/runtime/rt0_linux_amd64.s b/src/pkg/runtime/rt0_linux_amd64.s
index dfc9c04..4c1897a 100644
--- a/src/pkg/runtime/rt0_linux_amd64.s
+++ b/src/pkg/runtime/rt0_linux_amd64.s
@@ -9,5 +9,5 @@
JMP AX
TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
diff --git a/src/pkg/runtime/rt0_linux_arm.s b/src/pkg/runtime/rt0_linux_arm.s
index a648160..884851c 100644
--- a/src/pkg/runtime/rt0_linux_arm.s
+++ b/src/pkg/runtime/rt0_linux_arm.s
@@ -41,7 +41,7 @@
SUB $4, R13 // fake a stack frame for runtime·setup_auxv
BL runtime·setup_auxv(SB)
ADD $4, R13
- B _rt0_arm(SB)
+ B _rt0_go(SB)
TEXT bad_abi<>(SB),7,$-4
// give diagnosis and exit
diff --git a/src/pkg/runtime/rt0_netbsd_386.s b/src/pkg/runtime/rt0_netbsd_386.s
index b4c029c..59e915b 100644
--- a/src/pkg/runtime/rt0_netbsd_386.s
+++ b/src/pkg/runtime/rt0_netbsd_386.s
@@ -11,4 +11,4 @@
INT $3
TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
diff --git a/src/pkg/runtime/rt0_netbsd_amd64.s b/src/pkg/runtime/rt0_netbsd_amd64.s
index 9e7b78e..94cc05b 100644
--- a/src/pkg/runtime/rt0_netbsd_amd64.s
+++ b/src/pkg/runtime/rt0_netbsd_amd64.s
@@ -9,5 +9,5 @@
JMP AX
TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
diff --git a/src/pkg/runtime/rt0_netbsd_arm.s b/src/pkg/runtime/rt0_netbsd_arm.s
index 8c1588f..19f40b8 100644
--- a/src/pkg/runtime/rt0_netbsd_arm.s
+++ b/src/pkg/runtime/rt0_netbsd_arm.s
@@ -5,4 +5,4 @@
// FreeBSD/NetBSD and Linux use the same linkage to main
TEXT _rt0_arm_netbsd(SB),7,$-4
- B _rt0_arm(SB)
+ B _rt0_go(SB)
diff --git a/src/pkg/runtime/rt0_openbsd_386.s b/src/pkg/runtime/rt0_openbsd_386.s
index 9c00a73..60f5592 100644
--- a/src/pkg/runtime/rt0_openbsd_386.s
+++ b/src/pkg/runtime/rt0_openbsd_386.s
@@ -11,4 +11,4 @@
INT $3
TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
diff --git a/src/pkg/runtime/rt0_openbsd_amd64.s b/src/pkg/runtime/rt0_openbsd_amd64.s
index 245a4c0f..2bf6d38 100644
--- a/src/pkg/runtime/rt0_openbsd_amd64.s
+++ b/src/pkg/runtime/rt0_openbsd_amd64.s
@@ -9,5 +9,5 @@
JMP AX
TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
diff --git a/src/pkg/runtime/rt0_plan9_386.s b/src/pkg/runtime/rt0_plan9_386.s
index 7af1eae..2745d5d 100644
--- a/src/pkg/runtime/rt0_plan9_386.s
+++ b/src/pkg/runtime/rt0_plan9_386.s
@@ -33,7 +33,7 @@
PUSHL AX
PUSHL $-1
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
DATA runtime·isplan9(SB)/4, $1
GLOBL runtime·isplan9(SB), $4
diff --git a/src/pkg/runtime/rt0_plan9_amd64.s b/src/pkg/runtime/rt0_plan9_amd64.s
index 16e5e82..6a0ab7d 100644
--- a/src/pkg/runtime/rt0_plan9_amd64.s
+++ b/src/pkg/runtime/rt0_plan9_amd64.s
@@ -5,7 +5,7 @@
TEXT _rt0_amd64_plan9(SB),7,$-8
LEAQ 8(SP), SI // argv
MOVQ 0(SP), DI // argc
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
DATA runtime·isplan9(SB)/4, $1
diff --git a/src/pkg/runtime/rt0_windows_386.s b/src/pkg/runtime/rt0_windows_386.s
index 6e34c6c..06bd18f 100644
--- a/src/pkg/runtime/rt0_windows_386.s
+++ b/src/pkg/runtime/rt0_windows_386.s
@@ -11,7 +11,7 @@
JMP main(SB)
TEXT main(SB),7,$0
- JMP _rt0_386(SB)
+ JMP _rt0_go(SB)
DATA runtime·iswindows(SB)/4, $1
diff --git a/src/pkg/runtime/rt0_windows_amd64.s b/src/pkg/runtime/rt0_windows_amd64.s
index b48c055..25b576e 100644
--- a/src/pkg/runtime/rt0_windows_amd64.s
+++ b/src/pkg/runtime/rt0_windows_amd64.s
@@ -11,7 +11,7 @@
JMP AX
TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+ MOVQ $_rt0_go(SB), AX
JMP AX
DATA runtime·iswindows(SB)/4, $1