mirror of
https://github.com/golang/go
synced 2024-11-26 05:17:58 -07:00
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
This commit is contained in:
parent
880d869764
commit
6120ef0799
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -11,4 +11,4 @@ TEXT _rt0_386_darwin(SB),7,$8
|
||||
INT $3
|
||||
|
||||
TEXT main(SB),7,$0
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
@ -9,5 +9,5 @@ TEXT _rt0_amd64_darwin(SB),7,$-8
|
||||
JMP AX
|
||||
|
||||
TEXT main(SB),7,$-8
|
||||
MOVQ $_rt0_amd64(SB), AX
|
||||
MOVQ $_rt0_go(SB), AX
|
||||
JMP AX
|
||||
|
@ -11,4 +11,4 @@ TEXT _rt0_386_freebsd(SB),7,$8
|
||||
INT $3
|
||||
|
||||
TEXT main(SB),7,$0
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
@ -9,5 +9,5 @@ TEXT _rt0_amd64_freebsd(SB),7,$-8
|
||||
JMP AX
|
||||
|
||||
TEXT main(SB),7,$-8
|
||||
MOVQ $_rt0_amd64(SB), AX
|
||||
MOVQ $_rt0_go(SB), AX
|
||||
JMP AX
|
||||
|
@ -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)
|
||||
|
@ -12,7 +12,7 @@ TEXT _rt0_386_linux(SB),7,$8
|
||||
INT $3
|
||||
|
||||
TEXT main(SB),7,$0
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
||||
TEXT _fallback_vdso(SB),7,$0
|
||||
INT $0x80
|
||||
|
@ -9,5 +9,5 @@ TEXT _rt0_amd64_linux(SB),7,$-8
|
||||
JMP AX
|
||||
|
||||
TEXT main(SB),7,$-8
|
||||
MOVQ $_rt0_amd64(SB), AX
|
||||
MOVQ $_rt0_go(SB), AX
|
||||
JMP AX
|
||||
|
@ -41,7 +41,7 @@ TEXT _rt0_arm_linux(SB),7,$-4
|
||||
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
|
||||
|
@ -11,4 +11,4 @@ TEXT _rt0_386_netbsd(SB),7,$8
|
||||
INT $3
|
||||
|
||||
TEXT main(SB),7,$0
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
@ -9,5 +9,5 @@ TEXT _rt0_amd64_netbsd(SB),7,$-8
|
||||
JMP AX
|
||||
|
||||
TEXT main(SB),7,$-8
|
||||
MOVQ $_rt0_amd64(SB), AX
|
||||
MOVQ $_rt0_go(SB), AX
|
||||
JMP AX
|
||||
|
@ -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)
|
||||
|
@ -11,4 +11,4 @@ TEXT _rt0_386_openbsd(SB),7,$8
|
||||
INT $3
|
||||
|
||||
TEXT main(SB),7,$0
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
@ -9,5 +9,5 @@ TEXT _rt0_amd64_openbsd(SB),7,$-8
|
||||
JMP AX
|
||||
|
||||
TEXT main(SB),7,$-8
|
||||
MOVQ $_rt0_amd64(SB), AX
|
||||
MOVQ $_rt0_go(SB), AX
|
||||
JMP AX
|
||||
|
@ -33,7 +33,7 @@ argv_fix:
|
||||
PUSHL AX
|
||||
PUSHL $-1
|
||||
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
||||
DATA runtime·isplan9(SB)/4, $1
|
||||
GLOBL runtime·isplan9(SB), $4
|
||||
|
@ -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
|
||||
|
@ -11,7 +11,7 @@ TEXT _rt0_386_windows(SB),7,$12
|
||||
JMP main(SB)
|
||||
|
||||
TEXT main(SB),7,$0
|
||||
JMP _rt0_386(SB)
|
||||
JMP _rt0_go(SB)
|
||||
|
||||
|
||||
DATA runtime·iswindows(SB)/4, $1
|
||||
|
@ -11,7 +11,7 @@ TEXT _rt0_amd64_windows(SB),7,$-8
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user