1/* crti.s for eabi
2   Copyright (C) 1996, 2000 Free Software Foundation, Inc.
3   Written By Michael Meissner
4
5This file is free software; you can redistribute it and/or modify it
6under the terms of the GNU General Public License as published by the
7Free Software Foundation; either version 2, or (at your option) any
8later version.
9
10In addition to the permissions in the GNU General Public License, the
11Free Software Foundation gives you unlimited permission to link the
12compiled version of this file with other programs, and to distribute
13those programs without any restriction coming from the use of this
14file.  (The General Public License restrictions do apply in other
15respects; for example, they cover modification of the file, and
16distribution when not linked into another program.)
17
18This file is distributed in the hope that it will be useful, but
19WITHOUT ANY WARRANTY; without even the implied warranty of
20MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21General Public License for more details.
22
23You should have received a copy of the GNU General Public License
24along with this program; see the file COPYING.  If not, write to
25the Free Software Foundation, 51 Franklin Street, Fifth Floor,
26Boston, MA 02110-1301, USA.
27
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.
33
34 */
35
36/* This file just supplies labeled starting points for the .got* and other
37   special sections.  It is linked in first before other modules.  */
38 
39	.file	"crti.s"
40	.ident	"GNU C crti.s"
41
42#include <ppc-asm.h>
43
44#ifndef __powerpc64__
45	.section ".got","aw"
46	.globl	__GOT_START__
47	.type	__GOT_START__,@object
48__GOT_START__:
49
50	.section ".got1","aw"
51	.globl	__GOT1_START__
52	.type	__GOT1_START__,@object
53__GOT1_START__:
54
55	.section ".got2","aw"
56	.globl	__GOT2_START__
57	.type	__GOT2_START__,@object
58__GOT2_START__:
59
60	.section ".fixup","aw"
61	.globl	__FIXUP_START__
62	.type	__FIXUP_START__,@object
63__FIXUP_START__:
64
65	.section ".ctors","aw"
66	.globl	__CTOR_LIST__
67	.type	__CTOR_LIST__,@object
68__CTOR_LIST__:
69
70	.section ".dtors","aw"
71	.globl	__DTOR_LIST__
72	.type	__DTOR_LIST__,@object
73__DTOR_LIST__:
74
75	.section ".sdata","aw"
76	.globl	__SDATA_START__
77	.type	__SDATA_START__,@object
78	.weak	_SDA_BASE_
79	.type	_SDA_BASE_,@object
80__SDATA_START__:
81_SDA_BASE_:
82
83	.section ".sbss","aw",@nobits
84	.globl	__SBSS_START__
85	.type	__SBSS_START__,@object
86__SBSS_START__:
87
88	.section ".sdata2","a"
89	.weak	_SDA2_BASE_
90	.type	_SDA2_BASE_,@object
91	.globl	__SDATA2_START__
92	.type	__SDATA2_START__,@object
93__SDATA2_START__:
94_SDA2_BASE_:
95
96	.section ".sbss2","a"
97	.globl	__SBSS2_START__
98	.type	__SBSS2_START__,@object
99__SBSS2_START__:
100
101	.section ".gcc_except_table","aw"
102	.globl	__EXCEPT_START__
103	.type	__EXCEPT_START__,@object
104__EXCEPT_START__:
105
106	.section ".eh_frame","aw"
107	.globl	__EH_FRAME_BEGIN__
108	.type	__EH_FRAME_BEGIN__,@object
109__EH_FRAME_BEGIN__:
110
111/* Head of __init function used for static constructors.  */
112	.section ".init","ax"
113	.align 2
114FUNC_START(__init)
115	stwu 1,-16(1)
116	mflr 0
117	stw 0,20(1)
118
119/* Head of __fini function used for static destructors.  */
120	.section ".fini","ax"
121	.align 2
122FUNC_START(__fini)
123	stwu 1,-16(1)
124	mflr 0
125	stw 0,20(1)
126#endif
127