summaryrefslogtreecommitdiff
path: root/crt/sh
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-27 13:20:47 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-27 13:20:47 -0400
commit82acacceaa1bdcb9fb5ec8cece8a73bbf7a561b9 (patch)
tree449121a81b6a31ce17eaa9d44c68c7608fe7ee6e /crt/sh
parent94f4c8237a58eba21ae24e19ea2d5b7321c0c1f6 (diff)
downloadmusl-82acacceaa1bdcb9fb5ec8cece8a73bbf7a561b9.tar.gz
fix name of sh crt asm directory
Diffstat (limited to 'crt/sh')
-rw-r--r--crt/sh/crti.s13
-rw-r--r--crt/sh/crtn.s9
2 files changed, 22 insertions, 0 deletions
diff --git a/crt/sh/crti.s b/crt/sh/crti.s
new file mode 100644
index 00000000..0410ab63
--- /dev/null
+++ b/crt/sh/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/sh/crtn.s b/crt/sh/crtn.s
new file mode 100644
index 00000000..dde633b0
--- /dev/null
+++ b/crt/sh/crtn.s
@@ -0,0 +1,9 @@
+.section .init
+ lds.l @r15+, pr
+ rts
+ nop
+
+.section .fini
+ lds.l @r15+, pr
+ rts
+ nop