Explorar o código

add missing startfiles for powerpc

Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
0375c68fe7
Modificáronse 2 ficheiros con 28 adicións e 0 borrados
  1. 15 0
      crt/powerpc/crti.s
  2. 13 0
      crt/powerpc/crtn.s

+ 15 - 0
crt/powerpc/crti.s

@@ -0,0 +1,15 @@
+.section .init
+.align 2
+.global _init
+_init:
+	stwu 1,-32(1)
+	mflr 0
+	stw 0,36(1)
+
+.section .fini
+.align 2
+.global _fini
+_fini:
+	stwu 1,-32(1)
+	mflr 0
+	stw 0,36(1)

+ 13 - 0
crt/powerpc/crtn.s

@@ -0,0 +1,13 @@
+.section .init
+.align 2
+	lwz 0,36(1)
+	addi 1,1,32
+	mtlr 0
+	blr
+
+.section .fini
+.align 2
+	lwz 0,36(1)
+	addi 1,1,32
+	mtlr 0
+	blr