aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_solaris_amd64.s
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-10-09 11:31:20 -0700
committerIan Lance Taylor <iant@golang.org>2017-10-11 20:07:31 +0000
commitcf3f771203c46d73a84d86e5ef7865d19e983150 (patch)
tree2c430aa36b095ac9b8c149cdeb45ca878c9df03f /src/runtime/rt0_solaris_amd64.s
parente29efbcbcbcd7dde56ac0b4880ff8c13fdb6a89d (diff)
downloadgo-cf3f771203c46d73a84d86e5ef7865d19e983150.tar.gz
go-cf3f771203c46d73a84d86e5ef7865d19e983150.zip
runtime: unify amd64 -buildmode=exe entry point code
All of the amd64 entry point code is the same except for Plan 9. Unify it all into asm_amd64.s. Change-Id: Id47ce3a7bb2bb0fd48f326a2d88ed18b17dee456 Reviewed-on: https://go-review.googlesource.com/69292 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/rt0_solaris_amd64.s')
-rw-r--r--src/runtime/rt0_solaris_amd64.s9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/runtime/rt0_solaris_amd64.s b/src/runtime/rt0_solaris_amd64.s
index e2d1e71bb4..695b4a6c8e 100644
--- a/src/runtime/rt0_solaris_amd64.s
+++ b/src/runtime/rt0_solaris_amd64.s
@@ -5,11 +5,4 @@
#include "textflag.h"
TEXT _rt0_amd64_solaris(SB),NOSPLIT,$-8
- LEAQ 8(SP), SI // argv
- MOVQ 0(SP), DI // argc
- MOVQ $main(SB), AX
- JMP AX
-
-TEXT main(SB),NOSPLIT,$-8
- MOVQ $runtime·rt0_go(SB), AX
- JMP AX
+ JMP _rt0_amd64(SB)