diff options
| author | Cherry Mui <cherryyz@google.com> | 2023-03-31 19:03:42 +0000 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2023-03-31 19:15:18 +0000 |
| commit | e72cd86b360aa523ca7af552b7ad9d3e57b28e35 (patch) | |
| tree | a1c918596ee38a2ea755a7a92f10fc20de7094ed /src/runtime/rt0_linux_ppc64.s | |
| parent | 63ef9059a2e920d22522f9be068df357fab3d1f6 (diff) | |
| download | go-e72cd86b360aa523ca7af552b7ad9d3e57b28e35.tar.xz | |
Revert "runtime: consolidate function descriptor definitions on PPC64"
This reverts CL 478917.
Reason for revert: need to revert CL 392854, and this caused a conflict.
Change-Id: I02c3285de5635b431a99adc8790c8310d1c4e6a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/481059
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/rt0_linux_ppc64.s')
| -rw-r--r-- | src/runtime/rt0_linux_ppc64.s | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/runtime/rt0_linux_ppc64.s b/src/runtime/rt0_linux_ppc64.s index f527170ed2..c9300a9caf 100644 --- a/src/runtime/rt0_linux_ppc64.s +++ b/src/runtime/rt0_linux_ppc64.s @@ -3,10 +3,17 @@ // license that can be found in the LICENSE file. #include "textflag.h" -#include "asm_ppc64x.h" -DEFINE_PPC64X_FUNCDESC(_rt0_ppc64_linux, _main<>) -DEFINE_PPC64X_FUNCDESC(main, _main<>) +// 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 TEXT _main<>(SB),NOSPLIT,$-8 // In a statically linked binary, the stack contains argc, |
