OSDN Git Service

* configure.in (spu-*-*): Don't skip target-libiberty.
[pf3gnuchains/gcc-fork.git] / gcc / config / spu / crti.asm
1 #  Copyright (C) 2006 Free Software Foundation, Inc.
2 #
3 #  This file is free software; you can redistribute it and/or modify it under
4 #  the terms of the GNU General Public License as published by the Free
5 #  Software Foundation; either version 2 of the License, or (at your option) 
6 #  any later version.
7 #
8 #  This file is distributed in the hope that it will be useful, but WITHOUT
9 #  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 #  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11 #  for more details.
12 #
13 #  You should have received a copy of the GNU General Public License
14 #  along with this file; see the file COPYING.  If not, write to the Free
15 #  Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
16 #  02110-1301, USA.  */
17
18 #    As a special exception, if you link this library with files
19 #    compiled with GCC to produce an executable, this does not cause
20 #    the resulting executable to be covered by the GNU General Public License.
21 #    This exception does not however invalidate any other reasons why
22 #    the executable file might be covered by the GNU General Public License.
23
24
25 # This file just make a stack frame for the contents of the .fini and
26 # .init sections.  Users may put any desired instructions in those
27 # sections.
28
29         # Note - this macro is complimented by the FUNC_END macro
30         # in crtn.asm.  If you change this macro you must also change
31         # that macro match.
32 .macro FUNC_START
33         #  Create a stack frame and save any call-preserved registers
34         ai      $sp, $sp, -16
35         stqd    $lr, 0($sp)
36 .endm
37                 
38         .file           "crti.asm"
39
40         .section        ".init"
41         .align 2
42         .global _init
43 _init:
44         FUNC_START
45         
46                 
47         .section        ".fini"
48         .align  2
49         .global _fini
50 _fini:
51         FUNC_START
52         
53 # end of crti.asm