about summary refs log tree commit diff
path: root/crt
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2013-10-05 05:13:18 -0500
committerBobby Bingham <koorogi@koorogi.info>2014-02-23 16:15:54 -0600
commit3a3c813e08d808224c12fd0e9104aeff7c45c9a7 (patch)
tree508b28c42438615d711afcb9b44d7b0e0842f28d /crt
parentd05aaedaabd4f5472c233dbbd1ff4bb9c9c99794 (diff)
downloadmusl-3a3c813e08d808224c12fd0e9104aeff7c45c9a7.tar.gz
musl-3a3c813e08d808224c12fd0e9104aeff7c45c9a7.tar.xz
musl-3a3c813e08d808224c12fd0e9104aeff7c45c9a7.zip
superh port
Diffstat (limited to 'crt')
-rw-r--r--crt/superh/crti.s13
-rw-r--r--crt/superh/crtn.s9
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