From 4ac638f4b7c49370a62db4e6232f2895d7bbda0d Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Fri, 31 Mar 2023 19:56:26 +0000 Subject: Revert "Revert "runtime: consolidate function descriptor definitions on PPC64"" This reverts CL 481059, which in turn reverts CL 478917. Reason for revert: reapply the original CL. Change-Id: Icf6bb6a620313b44fadcc7f69a62fdbb943e34fd Reviewed-on: https://go-review.googlesource.com/c/go/+/481075 TryBot-Result: Gopher Robot Reviewed-by: Matthew Dempsky Run-TryBot: Cherry Mui Reviewed-by: Paul Murphy --- src/runtime/rt0_linux_ppc64.s | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/runtime/rt0_linux_ppc64.s') diff --git a/src/runtime/rt0_linux_ppc64.s b/src/runtime/rt0_linux_ppc64.s index c9300a9caf..f527170ed2 100644 --- a/src/runtime/rt0_linux_ppc64.s +++ b/src/runtime/rt0_linux_ppc64.s @@ -3,17 +3,10 @@ // license that can be found in the LICENSE file. #include "textflag.h" +#include "asm_ppc64x.h" -// actually a function descriptor for _main<>(SB) -TEXT _rt0_ppc64_linux(SB),NOSPLIT,$0 - DWORD $_main<>(SB) - DWORD $0 - DWORD $0 - -TEXT main(SB),NOSPLIT,$0 - DWORD $_main<>(SB) - DWORD $0 - DWORD $0 +DEFINE_PPC64X_FUNCDESC(_rt0_ppc64_linux, _main<>) +DEFINE_PPC64X_FUNCDESC(main, _main<>) TEXT _main<>(SB),NOSPLIT,$-8 // In a statically linked binary, the stack contains argc, -- cgit v1.3-5-g9baa