diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2006-02-22 08:54:46 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2006-02-22 08:54:46 +0000 |
commit | 9ce85441f842f639a06205c1df1abd90487b8dc4 (patch) | |
tree | 0deb1727ae2c3486d1c5704570dd0c6d711b8e6a /libc/sysdeps/linux/cris/crti.S | |
parent | 212b3faa267c8f3eeafd275de3f7f3f3434a5e96 (diff) |
Cleaned up the assembler code a little.
Diffstat (limited to 'libc/sysdeps/linux/cris/crti.S')
-rw-r--r-- | libc/sysdeps/linux/cris/crti.S | 57 |
1 files changed, 25 insertions, 32 deletions
diff --git a/libc/sysdeps/linux/cris/crti.S b/libc/sysdeps/linux/cris/crti.S index 78a1862ef..0740c765d 100644 --- a/libc/sysdeps/linux/cris/crti.S +++ b/libc/sysdeps/linux/cris/crti.S @@ -1,36 +1,29 @@ -#NO_APP - .file "initfini.c" -#APP - - .section .init -#NO_APP - .align 1 - .global _init +/* glibc's sysdeps/cris/elf/initfini.c used for reference [PROLOG] */ + + .section .init + .align 1 + .global _init .type _init, @function _init: - Push $srp - subq 4,$sp - movem $r0,[$sp] - move.d $pc,$r0 - sub.d .:GOTOFF,$r0 -#APP - - .align 1 - - - .section .fini -#NO_APP - .align 1 - .global _fini + subq 4,$sp + move.d $r1,[$sp] + move $srp,$r1 + subq 4,$sp + move.d $r0,[$sp] + move.d $pc,$r0 + sub.d .:GOTOFF,$r0 + .align 1 + + .section .fini + .align 1 + .global _fini .type _fini, @function _fini: - Push $srp - subq 4,$sp - movem $r0,[$sp] - move.d $pc,$r0 - sub.d .:GOTOFF,$r0 -#APP - .align 1 - - -/*@TRAILER_BEGINS*/ + subq 4,$sp + move.d $r1,[$sp] + move $srp,$r1 + subq 4,$sp + move.d $r0,[$sp] + move.d $pc,$r0 + sub.d .:GOTOFF,$r0 + .align 1 |