add missing startfiles for powerpc

This commit is contained in:
Rich Felker 2012-11-23 13:31:16 -05:00
parent 7538708f8b
commit 0375c68fe7
2 changed files with 28 additions and 0 deletions

15
crt/powerpc/crti.s Normal file
View File

@ -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
crt/powerpc/crtn.s Normal file
View File

@ -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