diff options
Diffstat (limited to 'libc-top-half/musl/crt/or1k')
-rw-r--r-- | libc-top-half/musl/crt/or1k/crti.s | 11 | ||||
-rw-r--r-- | libc-top-half/musl/crt/or1k/crtn.s | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/libc-top-half/musl/crt/or1k/crti.s b/libc-top-half/musl/crt/or1k/crti.s new file mode 100644 index 0000000..7e74145 --- /dev/null +++ b/libc-top-half/musl/crt/or1k/crti.s @@ -0,0 +1,11 @@ +.section .init +.global _init +_init: + l.addi r1,r1,-4 + l.sw 0(r1),r9 + +.section .fini +.global _fini +_fini: + l.addi r1,r1,-4 + l.sw 0(r1),r9 diff --git a/libc-top-half/musl/crt/or1k/crtn.s b/libc-top-half/musl/crt/or1k/crtn.s new file mode 100644 index 0000000..4185a02 --- /dev/null +++ b/libc-top-half/musl/crt/or1k/crtn.s @@ -0,0 +1,9 @@ +.section .init + l.lwz r9,0(r1) + l.jr r9 + l.addi r1,r1,4 + +.section .fini + l.lwz r9,0(r1) + l.jr r9 + l.addi r1,r1,4 |