FSF GCC merge 02/23/03
[official-gcc.git] / gcc / config / rs6000 / eabi-ci.asm
blob64ffbfc8725ec3a86659fd9cbc1c337ebcf1529f
1 /* crti.s for eabi
2 Copyright (C) 1996, 2000 Free Software Foundation, Inc.
3 Written By Michael Meissner
5 This file is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2, or (at your option) any
8 later version.
10 In addition to the permissions in the GNU General Public License, the
11 Free Software Foundation gives you unlimited permission to link the
12 compiled version of this file with other programs, and to distribute
13 those programs without any restriction coming from the use of this
14 file. (The General Public License restrictions do apply in other
15 respects; for example, they cover modification of the file, and
16 distribution when not linked into another program.)
18 This file is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; see the file COPYING. If not, write to
25 the Free Software Foundation, 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.
28 As a special exception, if you link this library with files
29 compiled with GCC to produce an executable, this does not cause
30 the resulting executable to be covered by the GNU General Public License.
31 This exception does not however invalidate any other reasons why
32 the executable file might be covered by the GNU General Public License.
36 /* This file just supplies labeled starting points for the .got* and other
37 special sections. It is linked in first before other modules. */
39 .file "crti.s"
40 .ident "GNU C crti.s"
42 #include <ppc-asm.h>
44 .section ".got","aw"
45 .globl __GOT_START__
46 .type __GOT_START__,@object
47 __GOT_START__:
49 .section ".got1","aw"
50 .globl __GOT1_START__
51 .type __GOT1_START__,@object
52 __GOT1_START__:
54 .section ".got2","aw"
55 .globl __GOT2_START__
56 .type __GOT2_START__,@object
57 __GOT2_START__:
59 .section ".fixup","aw"
60 .globl __FIXUP_START__
61 .type __FIXUP_START__,@object
62 __FIXUP_START__:
64 .section ".ctors","aw"
65 .globl __CTOR_LIST__
66 .type __CTOR_LIST__,@object
67 __CTOR_LIST__:
69 .section ".dtors","aw"
70 .globl __DTOR_LIST__
71 .type __DTOR_LIST__,@object
72 __DTOR_LIST__:
74 .section ".sdata","aw"
75 .globl __SDATA_START__
76 .type __SDATA_START__,@object
77 .weak _SDA_BASE_
78 .type _SDA_BASE_,@object
79 __SDATA_START__:
80 _SDA_BASE_:
82 .section ".sbss","aw",@nobits
83 .globl __SBSS_START__
84 .type __SBSS_START__,@object
85 __SBSS_START__:
87 .section ".sdata2","a"
88 .weak _SDA2_BASE_
89 .type _SDA2_BASE_,@object
90 .globl __SDATA2_START__
91 .type __SDATA2_START__,@object
92 __SDATA2_START__:
93 _SDA2_BASE_:
95 .section ".sbss2","a"
96 .globl __SBSS2_START__
97 .type __SBSS2_START__,@object
98 __SBSS2_START__:
100 .section ".gcc_except_table","aw"
101 .globl __EXCEPT_START__
102 .type __EXCEPT_START__,@object
103 __EXCEPT_START__:
105 .section ".eh_frame","aw"
106 .globl __EH_FRAME_BEGIN__
107 .type __EH_FRAME_BEGIN__,@object
108 __EH_FRAME_BEGIN__:
110 /* Head of __init function used for static constructors. */
111 .section ".init","ax"
112 .align 2
113 FUNC_START(__init)
114 stwu 1,-16(1)
115 mflr 0
116 stw 0,20(1)
118 /* Head of __fini function used for static destructors. */
119 .section ".fini","ax"
120 .align 2
121 FUNC_START(__fini)
122 stwu 1,-16(1)
123 mflr 0
124 stw 0,20(1)