OSDN Git Service

In gcc/:
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / eabi-cn.asm
1 # crtn.s for eabi
2
3 #   Copyright (C) 1996, 2000 Free Software Foundation, Inc.
4 #   Written By Michael Meissner
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by the
8 # Free Software Foundation; either version 2, or (at your option) any
9 # later version.
10
11 # In addition to the permissions in the GNU General Public License, the
12 # Free Software Foundation gives you unlimited permission to link the
13 # compiled version of this file with other programs, and to distribute
14 # those programs without any restriction coming from the use of this
15 # file.  (The General Public License restrictions do apply in other
16 # respects; for example, they cover modification of the file, and
17 # distribution when not linked into another program.)
18
19 # This file is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22 # General Public License for more details.
23
24 # You should have received a copy of the GNU General Public License
25 # along with this program; see the file COPYING.  If not, write to
26 # the Free Software Foundation, 59 Temple Place - Suite 330,
27 # Boston, MA 02111-1307, USA.
28
29 #    As a special exception, if you link this library with files
30 #    compiled with GCC to produce an executable, this does not cause
31 #    the resulting executable to be covered by the GNU General Public License.
32 #    This exception does not however invalidate any other reasons why
33 #    the executable file might be covered by the GNU General Public License.
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 used for static constructors in Solaris
104         .section ".init","ax"
105         lwz 0,20(1)
106         mtlr 0
107         addi 1,1,16
108         blr
109
110 # Tail of __fini used for static destructors in Solaris
111         .section ".fini","ax"
112         lwz 0,20(1)
113         mtlr 0
114         addi 1,1,16
115         blr