diff options
Diffstat (limited to 'libc-top-half/musl/crt/sh/crti.s')
-rw-r--r-- | libc-top-half/musl/crt/sh/crti.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libc-top-half/musl/crt/sh/crti.s b/libc-top-half/musl/crt/sh/crti.s new file mode 100644 index 0000000..d99bfd5 --- /dev/null +++ b/libc-top-half/musl/crt/sh/crti.s @@ -0,0 +1,21 @@ +.section .init +.global _init +.type _init, @function +_init: + add #-4, r15 + mov.l r12, @-r15 + mov.l r14, @-r15 + sts.l pr, @-r15 + mov r15, r14 + nop + +.section .fini +.global _fini +.type _fini, @function +_fini: + add #-4, r15 + mov.l r12, @-r15 + mov.l r14, @-r15 + sts.l pr, @-r15 + mov r15, r14 + nop |