eabi-cn.asm revision 90075
1/* crtn.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, 59 Temple Place - Suite 330,
26Boston, MA 02111-1307, 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 ending points for the .got* and other
37   special sections.  It is linked in last after other modules.  */
38 
39	.file	"crtn.s"
40	.ident	"GNU C crtn.s"
41
42	.section ".got","aw"
43	.globl	__GOT_END__
44	.type	__GOT_END__,@object
45__GOT_END__:
46
47	.section ".got1","aw"
48	.globl	__GOT1_END__
49	.type	__GOT1_END__,@object
50__GOT1_END__:
51
52	.section ".got2","aw"
53	.globl	__GOT2_END__
54	.type	__GOT2_END__,@object
55__GOT2_END__:
56
57	.section ".fixup","aw"
58	.globl	__FIXUP_END__
59	.type	__FIXUP_END__,@object
60__FIXUP_END__:
61
62	.section ".ctors","aw"
63	.globl	__CTOR_END__
64	.type	__CTOR_END__,@object
65__CTOR_END__:
66
67	.section ".dtors","aw"
68	.globl	__DTOR_END__
69	.type	__DTOR_END__,@object
70__DTOR_END__:
71
72	.section ".sdata","aw"
73	.globl	__SDATA_END__
74	.type	__SDATA_END__,@object
75__SDATA_END__:
76
77	.section ".sbss","aw",@nobits
78	.globl	__SBSS_END__
79	.type	__SBSS_END__,@object
80__SBSS_END__:
81
82	.section ".sdata2","a"
83	.globl	__SDATA2_END__
84	.type	__SDATA2_END__,@object
85__SDATA2_END__:
86
87	.section ".sbss2","a"
88	.globl	__SBSS2_END__
89	.type	__SBSS2_END__,@object
90__SBSS2_END__:
91
92	.section ".gcc_except_table","aw"
93	.globl	__EXCEPT_END__
94	.type	__EXCEPT_END__,@object
95__EXCEPT_END__:
96
97	.section ".eh_frame","aw"
98	.globl	__EH_FRAME_END__
99	.type	__EH_FRAME_END__,@object
100__EH_FRAME_END__:
101        .long   0
102
103/* Tail of __init function used for static constructors.  */
104	.section ".init","ax"
105	lwz 0,20(1)
106	mtlr 0
107	addi 1,1,16
108	blr
109
110/* Tail of __fini function used for static destructors.  */
111	.section ".fini","ax"
112	lwz 0,20(1)
113	mtlr 0
114	addi 1,1,16
115	blr
116