aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_linux_ppc64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/rt0_linux_ppc64.s')
-rw-r--r--src/runtime/rt0_linux_ppc64.s13
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,