diff options
author | Eric Christopher <echristo@redhat.com> | 2001-08-28 23:03:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2001-08-28 23:03:52 +0000 |
commit | 46f9491e74bcfdad8409d33bb407677e3a126f50 (patch) | |
tree | 490b4a7728416582f147cb5193c5b68562a77802 /gcc/config/mips/crti.asm | |
parent | 5dde01439ea4977e8678c6cfc096c5a7d13fe821 (diff) | |
download | gcc-46f9491e74bcfdad8409d33bb407677e3a126f50.tar.gz |
c-pragma.h (add_weak): Move prototype from here...
2001-08-28 Eric Christopher <echristo@redhat.com>
Richard Henderson <rth@redhat.com>
* c-pragma.h (add_weak): Move prototype from here...
* output.h (add_weak): ... to here.
* varasm.c (add_weak): Fix typo.
* config/mips/crti.asm: New file.
* config/mips/crtn.asm: Ditto.
* config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
(CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
(INVOKE__main): Ditto.
(INIT_SECTION_ASM_OP): New.
(FINI_SECTION_ASM_OP): Ditto.
(STARTFILE_SPEC): Add crti.
(ENDFILE_SPEC): Add crtn.
* config/mips/elf64.h: Same.
* config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
Remove.
* config/mips/vxworks.h: Ditto.
* config/mips/t-elf: Support crti and crtn.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r45243
Diffstat (limited to 'gcc/config/mips/crti.asm')
-rw-r--r-- | gcc/config/mips/crti.asm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/config/mips/crti.asm b/gcc/config/mips/crti.asm new file mode 100644 index 00000000000..0b08529c6bf --- /dev/null +++ b/gcc/config/mips/crti.asm @@ -0,0 +1,26 @@ +/* 4 slots for argument spill area. 1 for cpreturn, 1 for stack. + Return spill offset of 40 and 20. */ + + .section .init,"ax",@progbits + .globl _init + .type _init,@function +_init: +#ifdef __mips64 + dsubu $sp,$sp,48 + sd $31,40($sp) +#else + subu $sp,$sp,32 + sw $31,20($sp) +#endif + + .section .fini,"ax",@progbits + .globl _fini + .type _fini,@function +_fini: +#ifdef __mips64 + dsubu $sp,$sp,48 + sd $31,40($sp) +#else + subu $sp,$sp,32 + sw $31,20($sp) +#endif |