]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: rename _rt0_$GOARCH to _rt0_go
authorRuss Cox <rsc@golang.org>
Tue, 11 Jun 2013 20:49:24 +0000 (16:49 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 11 Jun 2013 20:49:24 +0000 (16:49 -0400)
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

20 files changed:
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_arm.s
src/pkg/runtime/rt0_darwin_386.s
src/pkg/runtime/rt0_darwin_amd64.s
src/pkg/runtime/rt0_freebsd_386.s
src/pkg/runtime/rt0_freebsd_amd64.s
src/pkg/runtime/rt0_freebsd_arm.s
src/pkg/runtime/rt0_linux_386.s
src/pkg/runtime/rt0_linux_amd64.s
src/pkg/runtime/rt0_linux_arm.s
src/pkg/runtime/rt0_netbsd_386.s
src/pkg/runtime/rt0_netbsd_amd64.s
src/pkg/runtime/rt0_netbsd_arm.s
src/pkg/runtime/rt0_openbsd_386.s
src/pkg/runtime/rt0_openbsd_amd64.s
src/pkg/runtime/rt0_plan9_386.s
src/pkg/runtime/rt0_plan9_amd64.s
src/pkg/runtime/rt0_windows_386.s
src/pkg/runtime/rt0_windows_amd64.s

index eb75de17a442d0ceaf9cbd57ea76deef91a38aa1..8c771c3947e26a9d746c0aa8123b74f4d52f588a 100644 (file)
@@ -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
index 6408da42e96d9e3506604cef1311c831539819ee..7b7c1b55d0ec792c778d5335382bf06c57cab274 100644 (file)
@@ -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
index 8c7011e1f093c750c550db4c555bfe50b927e23c..892a742cbfa833c39e7ea683cc1ca8104f8a0476 100644 (file)
@@ -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
index 4b4c1f29422ae40ef023e0d1b0dd1c9d7ee76ddb..01e33e62bd8897cb246cda66ff4c3ba1ecd30aa5 100644 (file)
@@ -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)
index 45e69a01596a4a313865a788ff73bbb38c760583..d7aac300f6a62e19e4b759c14ccce1c34fd99c7b 100644 (file)
@@ -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
index c84482cdbfea190d16b8cdd1cde3e78c3087569d..a60859396524507d945564a92b5700bc5b48120f 100644 (file)
@@ -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)
index e6c6fb9cac77b725df7dc40979d544772b8e6918..0656e9f862d4bde111ee0369a5e8bc3a7b0b7c1f 100644 (file)
@@ -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
index 085fccf9d9d6a78204eecf074c06343d9361e08b..340b72cae0cd40763a85399b035143fb4ee9116a 100644 (file)
@@ -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)
index 73cca5d9805bd2f9a15045469aa6b971567d20f2..632d0a8fdf1d5fd1c4b7485999533092c2e707c7 100644 (file)
@@ -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
index dfc9c0421bd6401562d0f19b93a729bddba0ee63..4c1897adcdf20acdbaa27507bdb41a94d4064b9e 100644 (file)
@@ -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
index a648160cf7112481c451f6e8c4c300934c56de34..884851cb2d1bc8b2b7f7c07796a5033c2acb799b 100644 (file)
@@ -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
index b4c029c538dd6c91e88d99832a988231f6abfe61..59e915b6b2bf17eaae6fd825d6f1c99248b3f75b 100644 (file)
@@ -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)
index 9e7b78edc67761e5d836b638cc46ef39c678ef6d..94cc05b50ea300784c101f47b3a20e474d4eba31 100644 (file)
@@ -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
index 8c1588f2e3b6b3ffe9fdd701bca0fd09e2a40e0d..19f40b80dcea28a37d74511c52a76914273dffe8 100644 (file)
@@ -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)
index 9c00a733408f48a0802cc07e11c3f06bef05a427..60f559206a8f734bd274328ad971aa559e43869e 100644 (file)
@@ -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)
index 245a4c0f9b497401127e0eda663c352ff54bd7d2..2bf6d38222952645a7d64d5befa07064ad23ca5c 100644 (file)
@@ -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
index 7af1eae7cb9e79217af6fbb376398d831475f98d..2745d5d742808725c0950c8edd632d581f6d7174 100644 (file)
@@ -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
index 16e5e82b755f3c97d10048edbecc932807e2708d..6a0ab7de5eb46b3f580f0a20204ee15ae6bee325 100644 (file)
@@ -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
index 6e34c6c172adea68b2e91820a357b603c1303e9a..06bd18f69fb55bc5984c43e0765dab1803c92449 100644 (file)
@@ -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
index b48c0557052c5ffb2bce8537c219d034617ff4e4..25b576ee491a4cf334a0f1c3108ccb424e89fc0a 100644 (file)
@@ -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