From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- crt/sh/crti.s | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 crt/sh/crti.s (limited to 'crt/sh/crti.s') diff --git a/crt/sh/crti.s b/crt/sh/crti.s new file mode 100644 index 0000000..d99bfd5 --- /dev/null +++ b/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 -- cgit v1.2.3