aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_linux_ppc64.s
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2023-04-17 14:09:39 -0400
committerGopher Robot <gobot@golang.org>2023-04-17 18:44:00 +0000
commit2068d5658e99f6cf13dd2648f3542d2c5bcdabfc (patch)
tree5987614098391faa8671335d75b6ec943d7077b2 /src/runtime/rt0_linux_ppc64.s
parent0e9b2bc39a9f90c49ba7313e2af522dc058988b0 (diff)
downloadgo-2068d5658e99f6cf13dd2648f3542d2c5bcdabfc.tar.xz
Revert "Revert "Revert "runtime: consolidate function descriptor definitions on PPC64"""
This reverts CL 481075 (a re-apply of previously reverted CL 478917). Reason for revert: CL 481061 causes C TSAN failures and must be reverted. See CL 485275. This CL depends on CL 481061. For #59678. Change-Id: I4bf7f43d9df1ae28e04cd4065552bcbee82ef13f Reviewed-on: https://go-review.googlesource.com/c/go/+/485316 Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/rt0_linux_ppc64.s')
-rw-r--r--src/runtime/rt0_linux_ppc64.s13
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,