diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-03-06 17:41:56 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-03-06 17:41:56 +0000 |
commit | 83933573aff71a5d178ab71912f177d2d844e63e (patch) | |
tree | 3c7057d0c83c0030b8a6c0405f1b2797fbbcf450 /crt | |
parent | 71392a91c333d47b6b3c8f99c897e3b5a7eb6d58 (diff) | |
download | musl-83933573aff71a5d178ab71912f177d2d844e63e.tar.gz musl-83933573aff71a5d178ab71912f177d2d844e63e.tar.xz musl-83933573aff71a5d178ab71912f177d2d844e63e.zip |
add mips64 port
patch by Mahesh Bodapati and Jaydeep Patil of Imagination Technologies.
Diffstat (limited to 'crt')
-rw-r--r-- | crt/mips64/crti.s | 17 | ||||
-rw-r--r-- | crt/mips64/crtn.s | 13 |
2 files changed, 30 insertions, 0 deletions
diff --git a/crt/mips64/crti.s b/crt/mips64/crti.s new file mode 100644 index 00000000..c962dd09 --- /dev/null +++ b/crt/mips64/crti.s @@ -0,0 +1,17 @@ +.set noreorder + +.section .init +.global _init +.align 3 +_init: + dsubu $sp, $sp, 32 + sd $gp, 16($sp) + sd $ra, 24($sp) + +.section .fini +.global _fini +.align 3 +_fini: + dsubu $sp, $sp, 32 + sd $gp, 16($sp) + sd $ra, 24($sp) diff --git a/crt/mips64/crtn.s b/crt/mips64/crtn.s new file mode 100644 index 00000000..f3930b24 --- /dev/null +++ b/crt/mips64/crtn.s @@ -0,0 +1,13 @@ +.set noreorder + +.section .init + ld $gp,16($sp) + ld $ra,24($sp) + j $ra + daddu $sp,$sp,32 + +.section .fini + ld $gp,16($sp) + ld $ra,24($sp) + j $ra + daddu $sp,$sp,32 |