diff options
Diffstat (limited to 'libc-top-half/musl/crt/s390x')
-rw-r--r-- | libc-top-half/musl/crt/s390x/crti.s | 17 | ||||
-rw-r--r-- | libc-top-half/musl/crt/s390x/crtn.s | 9 |
2 files changed, 26 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) diff --git a/libc-top-half/musl/crt/s390x/crtn.s b/libc-top-half/musl/crt/s390x/crtn.s new file mode 100644 index 0000000..06066dc --- /dev/null +++ b/libc-top-half/musl/crt/s390x/crtn.s @@ -0,0 +1,9 @@ +.section .init +.align 2 + lmg %r14, %r15, 272(%r15) + br %r14 + +.section .fini +.align 2 + lmg %r14, %r15, 272(%r15) + br %r14 |