commit e462bca26131b233d552ce495082e21b762de1de
parent 6042e799273e80d79daeaaed441a8913d7ee69a3
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date: Sun, 19 Apr 2020 16:24:30 +0200
libc: Implement crt-posix.s for ppc32
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/libc/arch/ppc32/crt-posix.s b/src/libc/arch/ppc32/crt-posix.s
@@ -0,0 +1,11 @@
+ .comm _environ,4,4
+
+ .text
+ .globl _start
+_start:
+ stwu 1,-16(1)
+ lis 14,_environ@h
+ ori 14,14,_environ@l
+ stw 5,0(14)
+ bl main
+ b exit