diff options
Diffstat (limited to 'crt/superh')
-rw-r--r-- | crt/superh/crti.s | 13 | ||||
-rw-r--r-- | crt/superh/crtn.s | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/crt/superh/crti.s b/crt/superh/crti.s new file mode 100644 index 00000000..0410ab63 --- /dev/null +++ b/crt/superh/crti.s @@ -0,0 +1,13 @@ +.section .init +.global _init +.type _init, @function +_init: + sts.l pr, @-r15 + nop + +.section .fini +.global _fini +.type _fini, @function +_fini: + sts.l pr, @-r15 + nop diff --git a/crt/superh/crtn.s b/crt/superh/crtn.s new file mode 100644 index 00000000..dde633b0 --- /dev/null +++ b/crt/superh/crtn.s @@ -0,0 +1,9 @@ +.section .init + lds.l @r15+, pr + rts + nop + +.section .fini + lds.l @r15+, pr + rts + nop |