OSDN Git Service

Support for .sdata/.sbss/.sdata2/.sbss2
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / eabi-cn.asm
1 # crtn.s for eabi
2
3 #   Copyright (C) 1996 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 # Put a blrl instruction in the special .got.blrl section, which
73 # the GNU linker puts at _GLOBAL_OFFSET_TABLE-4, so that a program
74 # can find the _GLOBAL_OFFSET_TABLE_ address in a painless fashion.
75
76         .section ".got.blrl","awx"
77         blrl
78
79         .section ".sdata","aw"
80         .globl  __SDATA_END__
81         .type   __SDATA_END__,@object
82 __SDATA_END__:
83
84         .section ".sbss","aw"
85         .globl  __SBSS_END__
86         .type   __SBSS_END__,@object
87 __SBSS_END__:
88
89         .section ".sdata2","aw"
90         .globl  __SDATA2_END__
91         .type   __SDATA2_END__,@object
92 __SDATA2_END__:
93
94         .section ".sbss2","aw"
95         .globl  __SBSS2_END__
96         .type   __SBSS2_END__,@object
97 __SBSS2_END__: