2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / rs6000 / eabi-cn.asm
blobb2c609532ce370f659e444f41009177194bcb90b
1 /* crtn.s for eabi
2 Copyright (C) 1996, 2000 Free Software Foundation, Inc.
3 Written By Michael Meissner
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.
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.)
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.
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, 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.
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.
36 /* This file just supplies labeled ending points for the .got* and other
37 special sections. It is linked in last after other modules. */
39 .file "crtn.s"
40 .ident "GNU C crtn.s"
42 #ifndef __powerpc64__
43 .section ".got","aw"
44 .globl __GOT_END__
45 .type __GOT_END__,@object
46 __GOT_END__:
48 .section ".got1","aw"
49 .globl __GOT1_END__
50 .type __GOT1_END__,@object
51 __GOT1_END__:
53 .section ".got2","aw"
54 .globl __GOT2_END__
55 .type __GOT2_END__,@object
56 __GOT2_END__:
58 .section ".fixup","aw"
59 .globl __FIXUP_END__
60 .type __FIXUP_END__,@object
61 __FIXUP_END__:
63 .section ".ctors","aw"
64 .globl __CTOR_END__
65 .type __CTOR_END__,@object
66 __CTOR_END__:
68 .section ".dtors","aw"
69 .globl __DTOR_END__
70 .type __DTOR_END__,@object
71 __DTOR_END__:
73 .section ".sdata","aw"
74 .globl __SDATA_END__
75 .type __SDATA_END__,@object
76 __SDATA_END__:
78 .section ".sbss","aw",@nobits
79 .globl __SBSS_END__
80 .type __SBSS_END__,@object
81 __SBSS_END__:
83 .section ".sdata2","a"
84 .globl __SDATA2_END__
85 .type __SDATA2_END__,@object
86 __SDATA2_END__:
88 .section ".sbss2","a"
89 .globl __SBSS2_END__
90 .type __SBSS2_END__,@object
91 __SBSS2_END__:
93 .section ".gcc_except_table","aw"
94 .globl __EXCEPT_END__
95 .type __EXCEPT_END__,@object
96 __EXCEPT_END__:
98 .section ".eh_frame","aw"
99 .globl __EH_FRAME_END__
100 .type __EH_FRAME_END__,@object
101 __EH_FRAME_END__:
102 .long 0
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
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
117 #endif