diff options
| author | Cherry Mui <cherryyz@google.com> | 2023-03-31 19:56:26 +0000 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2023-04-03 18:58:39 +0000 |
| commit | 4ac638f4b7c49370a62db4e6232f2895d7bbda0d (patch) | |
| tree | 82a58296be851fe71b6ee2d1379acbc1e3373b94 /src/runtime/rt0_linux_ppc64.s | |
| parent | f46320849da89bea3e23bae985ad753d30bbc5da (diff) | |
| download | go-4ac638f4b7c49370a62db4e6232f2895d7bbda0d.tar.xz | |
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 <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Paul Murphy <murp@ibm.com>
Diffstat (limited to 'src/runtime/rt0_linux_ppc64.s')
| -rw-r--r-- | src/runtime/rt0_linux_ppc64.s | 13 |
1 files changed, 3 insertions, 10 deletions
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, |
