diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-05 09:09:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-05 09:09:22 +0000 |
commit | 3a3af36f1bef68c9942e9ef3fb83cc15aeabfcc0 (patch) | |
tree | cb5b06dfd527980b1b5cc6df57c5a46cf4f7953c /libc/sysdeps/linux/nios2/crti.S | |
parent | 385a0b9d4fa0806c0f22e21d01f42b523c1b43cf (diff) |
Atle Nissestad writes: The attached patch fixes compilation of the current svn on the nios2 platform, and updates the crt1/n/i.S files to get CTOR/DTOR-support to work.
Diffstat (limited to 'libc/sysdeps/linux/nios2/crti.S')
-rw-r--r-- | libc/sysdeps/linux/nios2/crti.S | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/nios2/crti.S b/libc/sysdeps/linux/nios2/crti.S index 7867c21c0..26c55c970 100644 --- a/libc/sysdeps/linux/nios2/crti.S +++ b/libc/sysdeps/linux/nios2/crti.S @@ -1,31 +1,22 @@ - .file "initfini.c" -#APP - + .section .init -#NO_APP .balign 4 - .global __init - .type __init, @function -__init: + .global _init + .type _init, @function +_init: addi sp, sp, -8 stw ra, 0(sp) stw fp, 4(sp) -#APP - + .balign 4 .section .fini -#NO_APP .balign 4 - .global __fini - .type __fini, @function -__fini: + .global _fini + .type _fini, @function +_fini: addi sp, sp, -8 stw ra, 0(sp) stw fp, 4(sp) -#APP .balign 4 - - - .ident "GCC: (GNU) 3.3.2" |