Browse Source

add missing startfiles for powerpc

Rich Felker 12 years ago
parent
commit
0375c68fe7
2 changed files with 28 additions and 0 deletions
  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