From 3a3c813e08d808224c12fd0e9104aeff7c45c9a7 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 5 Oct 2013 05:13:18 -0500 Subject: superh port --- crt/superh/crti.s | 13 +++++++++++++ crt/superh/crtn.s | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 crt/superh/crti.s create mode 100644 crt/superh/crtn.s (limited to 'crt') 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 -- cgit v1.2.1