summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/crti.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-08 14:51:40 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-08 14:51:40 +0000
commit9f2d19bf1ef216e536c5e89b82a5ce422002fd01 (patch)
tree1103cecba0916b5c2b42f3ff7f1d6fa12b115b49 /libc/sysdeps/linux/sh/crti.S
parent42650258c1d93e49e102dcbb02ca75de53a0b7b8 (diff)
I reworked syscalls.h to match how I'm doing other arches. Stefan Allius and
Edie C. Dost has some concerns about the perl script used to general crti.o and crtn.o and added their own versions. These versions will win since they are built last,
Diffstat (limited to 'libc/sysdeps/linux/sh/crti.S')
-rw-r--r--libc/sysdeps/linux/sh/crti.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh/crti.S b/libc/sysdeps/linux/sh/crti.S
new file mode 100644
index 000000000..f79b6d2cf
--- /dev/null
+++ b/libc/sysdeps/linux/sh/crti.S
@@ -0,0 +1,22 @@
+ .file "crti.S"
+
+ .section .init
+ .align 2
+ .global _init
+ .hidden _init
+ .type _init,@function
+_init:
+ mov.l r14,@-r15
+ sts.l pr,@-r15
+ mov r15,r14
+
+ .section .fini
+ .align 2
+ .global _fini
+ .hidden _fini
+ .type _fini,@function
+_fini:
+ mov.l r14,@-r15
+ sts.l pr,@-r15
+ mov r15,r14
+