summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/crt/arm
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/crt/arm')
-rw-r--r--libc-top-half/musl/crt/arm/crti.s13
-rw-r--r--libc-top-half/musl/crt/arm/crtn.s9
2 files changed, 22 insertions, 0 deletions
diff --git a/libc-top-half/musl/crt/arm/crti.s b/libc-top-half/musl/crt/arm/crti.s
new file mode 100644
index 0000000..18dc1e4
--- /dev/null
+++ b/libc-top-half/musl/crt/arm/crti.s
@@ -0,0 +1,13 @@
+.syntax unified
+
+.section .init
+.global _init
+.type _init,%function
+_init:
+ push {r0,lr}
+
+.section .fini
+.global _fini
+.type _fini,%function
+_fini:
+ push {r0,lr}
diff --git a/libc-top-half/musl/crt/arm/crtn.s b/libc-top-half/musl/crt/arm/crtn.s
new file mode 100644
index 0000000..dc020f9
--- /dev/null
+++ b/libc-top-half/musl/crt/arm/crtn.s
@@ -0,0 +1,9 @@
+.syntax unified
+
+.section .init
+ pop {r0,lr}
+ bx lr
+
+.section .fini
+ pop {r0,lr}
+ bx lr