]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/gcc/config/rs6000/eabi-cn.asm
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / gcc / config / rs6000 / eabi-cn.asm
1 /* crtn.s for eabi
2    Copyright (C) 1996, 2000 Free Software Foundation, Inc.
3    Written By Michael Meissner
4
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.
9
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.)
17
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.
22
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, 51 Franklin Street, Fifth Floor,
26 Boston, 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 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 #ifndef __powerpc64__
43         .section ".got","aw"
44         .globl  __GOT_END__
45         .type   __GOT_END__,@object
46 __GOT_END__:
47
48         .section ".got1","aw"
49         .globl  __GOT1_END__
50         .type   __GOT1_END__,@object
51 __GOT1_END__:
52
53         .section ".got2","aw"
54         .globl  __GOT2_END__
55         .type   __GOT2_END__,@object
56 __GOT2_END__:
57
58         .section ".fixup","aw"
59         .globl  __FIXUP_END__
60         .type   __FIXUP_END__,@object
61 __FIXUP_END__:
62
63         .section ".ctors","aw"
64         .globl  __CTOR_END__
65         .type   __CTOR_END__,@object
66 __CTOR_END__:
67
68         .section ".dtors","aw"
69         .globl  __DTOR_END__
70         .type   __DTOR_END__,@object
71 __DTOR_END__:
72
73         .section ".sdata","aw"
74         .globl  __SDATA_END__
75         .type   __SDATA_END__,@object
76 __SDATA_END__:
77
78         .section ".sbss","aw",@nobits
79         .globl  __SBSS_END__
80         .type   __SBSS_END__,@object
81 __SBSS_END__:
82
83         .section ".sdata2","a"
84         .globl  __SDATA2_END__
85         .type   __SDATA2_END__,@object
86 __SDATA2_END__:
87
88         .section ".sbss2","a"
89         .globl  __SBSS2_END__
90         .type   __SBSS2_END__,@object
91 __SBSS2_END__:
92
93         .section ".gcc_except_table","aw"
94         .globl  __EXCEPT_END__
95         .type   __EXCEPT_END__,@object
96 __EXCEPT_END__:
97
98         .section ".eh_frame","aw"
99         .globl  __EH_FRAME_END__
100         .type   __EH_FRAME_END__,@object
101 __EH_FRAME_END__:
102         .long   0
103
104 /* Tail of __init function used for static constructors.  */
105         .section ".init","ax"
106         lwz 0,20(1)
107         mtlr 0
108         addi 1,1,16
109         blr
110
111 /* Tail of __fini function used for static destructors.  */
112         .section ".fini","ax"
113         lwz 0,20(1)
114         mtlr 0
115         addi 1,1,16
116         blr
117 #endif