summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/cris/crtn.S
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-22 08:54:46 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2006-02-22 08:54:46 +0000
commit9ce85441f842f639a06205c1df1abd90487b8dc4 (patch)
tree0deb1727ae2c3486d1c5704570dd0c6d711b8e6a /libc/sysdeps/linux/cris/crtn.S
parent212b3faa267c8f3eeafd275de3f7f3f3434a5e96 (diff)
Cleaned up the assembler code a little.
Diffstat (limited to 'libc/sysdeps/linux/cris/crtn.S')
-rw-r--r--libc/sysdeps/linux/cris/crtn.S42
1 files changed, 19 insertions, 23 deletions
diff --git a/libc/sysdeps/linux/cris/crtn.S b/libc/sysdeps/linux/cris/crtn.S
index e9d8a963f..951ae5449 100644
--- a/libc/sysdeps/linux/cris/crtn.S
+++ b/libc/sysdeps/linux/cris/crtn.S
@@ -1,27 +1,23 @@
-#NO_APP
- .file "initfini.c"
-#APP
-
- .section .init
-#NO_APP
- .align 1
- .global _init
+/* glibc's sysdeps/cris/elf/initfini.c used for reference [EPILOG] */
+
+ .section .init
+ .align 1
+ .global _init
.type _init, @function
-#NO_APP
- movem [$sp+],$r0
- Jump [$sp+]
+ move.d [$sp+],$r0
+ move $r1,$srp
+ move.d [$sp+],$r1
+ Ret
+ nop
.size _init, .-_init
-#APP
-
- .section .fini
-#NO_APP
- .align 1
- .global _fini
+
+ .section .fini
+ .align 1
+ .global _fini
.type _fini, @function
-#NO_APP
- movem [$sp+],$r0
- Jump [$sp+]
+ move.d [$sp+],$r0
+ move $r1,$srp
+ move.d [$sp+],$r1
+ Ret
+ nop
.size _fini, .-_fini
-#APP
-
-/*@TRAILER_BEGINS*/