summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/crt/s390x/crti.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/crt/s390x/crti.s')
-rw-r--r--libc-top-half/musl/crt/s390x/crti.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc-top-half/musl/crt/s390x/crti.s b/libc-top-half/musl/crt/s390x/crti.s
new file mode 100644
index 0000000..f453205
--- /dev/null
+++ b/libc-top-half/musl/crt/s390x/crti.s
@@ -0,0 +1,17 @@
+.section .init
+.align 2
+.global _init
+_init:
+ stmg %r14, %r15, 112(%r15)
+ lgr %r0, %r15
+ aghi %r15, -160
+ stg %r0, 0(%r15)
+
+.section .fini
+.align 2
+.global _fini
+_fini:
+ stmg %r14, %r15, 112(%r15)
+ lgr %r0, %r15
+ aghi %r15, -160
+ stg %r0, 0(%r15)