X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=crt%2Fsh%2Fcrti.s;h=d99bfd5c82dc3e1900891139c1935a9ea46a48ea;hb=f3b6690a53c81a869173bbdce701972c952a4e82;hp=0410ab639588817cf92674817e0a5551dc08f44d;hpb=82acacceaa1bdcb9fb5ec8cece8a73bbf7a561b9;p=musl diff --git a/crt/sh/crti.s b/crt/sh/crti.s index 0410ab63..d99bfd5c 100644 --- a/crt/sh/crti.s +++ b/crt/sh/crti.s @@ -2,12 +2,20 @@ .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