diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-10-09 11:31:20 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-10-11 20:07:31 +0000 |
commit | cf3f771203c46d73a84d86e5ef7865d19e983150 (patch) | |
tree | 2c430aa36b095ac9b8c149cdeb45ca878c9df03f /src/runtime/rt0_darwin_amd64.s | |
parent | e29efbcbcbcd7dde56ac0b4880ff8c13fdb6a89d (diff) | |
download | go-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_darwin_amd64.s')
-rw-r--r-- | src/runtime/rt0_darwin_amd64.s | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/runtime/rt0_darwin_amd64.s b/src/runtime/rt0_darwin_amd64.s index 655e77a86b..2d11aa4155 100644 --- a/src/runtime/rt0_darwin_amd64.s +++ b/src/runtime/rt0_darwin_amd64.s @@ -5,10 +5,7 @@ #include "textflag.h" TEXT _rt0_amd64_darwin(SB),NOSPLIT,$-8 - LEAQ 8(SP), SI // argv - MOVQ 0(SP), DI // argc - MOVQ $main(SB), AX - JMP AX + JMP _rt0_amd64(SB) // When linking with -shared, this symbol is called when the shared library // is loaded. @@ -73,7 +70,3 @@ DATA _rt0_amd64_darwin_lib_argc<>(SB)/8, $0 GLOBL _rt0_amd64_darwin_lib_argc<>(SB),NOPTR, $8 DATA _rt0_amd64_darwin_lib_argv<>(SB)/8, $0 GLOBL _rt0_amd64_darwin_lib_argv<>(SB),NOPTR, $8 - -TEXT main(SB),NOSPLIT,$-8 - MOVQ $runtime·rt0_go(SB), AX - JMP AX |