From cf3f771203c46d73a84d86e5ef7865d19e983150 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 9 Oct 2017 11:31:20 -0700 Subject: 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 Reviewed-by: Austin Clements TryBot-Result: Gobot Gobot --- src/runtime/rt0_linux_amd64.s | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/runtime/rt0_linux_amd64.s') diff --git a/src/runtime/rt0_linux_amd64.s b/src/runtime/rt0_linux_amd64.s index ced471f5cb..4faa1f24d3 100644 --- a/src/runtime/rt0_linux_amd64.s +++ b/src/runtime/rt0_linux_amd64.s @@ -5,10 +5,7 @@ #include "textflag.h" TEXT _rt0_amd64_linux(SB),NOSPLIT,$-8 - LEAQ 8(SP), SI // argv - MOVQ 0(SP), DI // argc - MOVQ $main(SB), AX - JMP AX + JMP _rt0_amd64(SB) // When building with -buildmode=c-shared, this symbol is called when the shared // library is loaded. @@ -68,7 +65,3 @@ DATA _rt0_amd64_linux_lib_argc<>(SB)/8, $0 GLOBL _rt0_amd64_linux_lib_argc<>(SB),NOPTR, $8 DATA _rt0_amd64_linux_lib_argv<>(SB)/8, $0 GLOBL _rt0_amd64_linux_lib_argv<>(SB),NOPTR, $8 - -TEXT main(SB),NOSPLIT,$-8 - MOVQ $runtime·rt0_go(SB), AX - JMP AX -- cgit v1.3-5-g45d5