summaryrefslogtreecommitdiff
path: root/crt/sh/crtn.s
diff options
context:
space:
mode:
Diffstat (limited to 'crt/sh/crtn.s')
-rw-r--r--crt/sh/crtn.s8
1 files changed, 6 insertions, 2 deletions
diff --git a/crt/sh/crtn.s b/crt/sh/crtn.s
index dde633b0..958ce951 100644
--- a/crt/sh/crtn.s
+++ b/crt/sh/crtn.s
@@ -1,9 +1,13 @@
.section .init
lds.l @r15+, pr
+ mov.l @r15+, r14
+ mov.l @r15+, r12
rts
- nop
+ add #4, r15
.section .fini
lds.l @r15+, pr
+ mov.l @r15+, r14
+ mov.l @r15+, r12
rts
- nop
+ add #4, r15