summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh64/crtn.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-05 05:57:19 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-05 05:57:19 +0000
commit46c48a7091b56d6baa6f7894f03cacad42074d24 (patch)
tree1b9dd4186fd3badd5edd36bec3a45bebd48e0621 /libc/sysdeps/linux/sh64/crtn.S
parent6d4e78b8aab1f4813439e77f1475dda6594d0b81 (diff)
Continue the conversion to using per-arch crti.S and crtn.S
Diffstat (limited to 'libc/sysdeps/linux/sh64/crtn.S')
-rw-r--r--libc/sysdeps/linux/sh64/crtn.S33
1 files changed, 33 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh64/crtn.S b/libc/sysdeps/linux/sh64/crtn.S
new file mode 100644
index 000000000..eb6479a56
--- /dev/null
+++ b/libc/sysdeps/linux/sh64/crtn.S
@@ -0,0 +1,33 @@
+ .file "initfini.c"
+ .section .text..SHmedia32,"ax"
+ .little
+
+ .section .init
+ .hidden _init
+ .align 2
+ .global _init
+ .type _init, @function
+ add.l r14, r63, r15
+ ld.l r15, 12, r18
+ ld.l r15, 4, r12
+ ld.l r15, 8, r14
+ ptabs r18, tr0
+ addi.l r15, 16, r15
+ blink tr0, r63
+ .size _init, .-_init
+
+ .section .fini
+ .hidden _fini
+ .align 2
+ .global _fini
+ .type _fini, @function
+ add.l r14, r63, r15
+ ld.l r15, 12, r18
+ ld.l r15, 4, r12
+ ld.l r15, 8, r14
+ ptabs r18, tr0
+ addi.l r15, 16, r15
+ blink tr0, r63
+ .size _fini, .-_fini
+
+ .ident "GCC: (GNU) 3.3.2"