eabi-cn.asm revision 90075
190075Sobrien/* crtn.s for eabi
290075Sobrien   Copyright (C) 1996, 2000 Free Software Foundation, Inc.
390075Sobrien   Written By Michael Meissner
490075Sobrien
590075SobrienThis file is free software; you can redistribute it and/or modify it
690075Sobrienunder the terms of the GNU General Public License as published by the
790075SobrienFree Software Foundation; either version 2, or (at your option) any
890075Sobrienlater version.
990075Sobrien
1090075SobrienIn addition to the permissions in the GNU General Public License, the
1190075SobrienFree Software Foundation gives you unlimited permission to link the
1290075Sobriencompiled version of this file with other programs, and to distribute
1390075Sobrienthose programs without any restriction coming from the use of this
1490075Sobrienfile.  (The General Public License restrictions do apply in other
1590075Sobrienrespects; for example, they cover modification of the file, and
1690075Sobriendistribution when not linked into another program.)
1790075Sobrien
1890075SobrienThis file is distributed in the hope that it will be useful, but
1990075SobrienWITHOUT ANY WARRANTY; without even the implied warranty of
2090075SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2190075SobrienGeneral Public License for more details.
2290075Sobrien
2390075SobrienYou should have received a copy of the GNU General Public License
2490075Sobrienalong with this program; see the file COPYING.  If not, write to
2590075Sobrienthe Free Software Foundation, 59 Temple Place - Suite 330,
2690075SobrienBoston, MA 02111-1307, USA.
2790075Sobrien
2890075Sobrien   As a special exception, if you link this library with files
2990075Sobrien   compiled with GCC to produce an executable, this does not cause
3090075Sobrien   the resulting executable to be covered by the GNU General Public License.
3190075Sobrien   This exception does not however invalidate any other reasons why
3290075Sobrien   the executable file might be covered by the GNU General Public License.
3390075Sobrien
3490075Sobrien  */
3590075Sobrien
3690075Sobrien/* This file just supplies labeled ending points for the .got* and other
3790075Sobrien   special sections.  It is linked in last after other modules.  */
3890075Sobrien 
3990075Sobrien	.file	"crtn.s"
4090075Sobrien	.ident	"GNU C crtn.s"
4190075Sobrien
4290075Sobrien	.section ".got","aw"
4390075Sobrien	.globl	__GOT_END__
4490075Sobrien	.type	__GOT_END__,@object
4590075Sobrien__GOT_END__:
4690075Sobrien
4790075Sobrien	.section ".got1","aw"
4890075Sobrien	.globl	__GOT1_END__
4990075Sobrien	.type	__GOT1_END__,@object
5090075Sobrien__GOT1_END__:
5190075Sobrien
5290075Sobrien	.section ".got2","aw"
5390075Sobrien	.globl	__GOT2_END__
5490075Sobrien	.type	__GOT2_END__,@object
5590075Sobrien__GOT2_END__:
5690075Sobrien
5790075Sobrien	.section ".fixup","aw"
5890075Sobrien	.globl	__FIXUP_END__
5990075Sobrien	.type	__FIXUP_END__,@object
6090075Sobrien__FIXUP_END__:
6190075Sobrien
6290075Sobrien	.section ".ctors","aw"
6390075Sobrien	.globl	__CTOR_END__
6490075Sobrien	.type	__CTOR_END__,@object
6590075Sobrien__CTOR_END__:
6690075Sobrien
6790075Sobrien	.section ".dtors","aw"
6890075Sobrien	.globl	__DTOR_END__
6990075Sobrien	.type	__DTOR_END__,@object
7090075Sobrien__DTOR_END__:
7190075Sobrien
7290075Sobrien	.section ".sdata","aw"
7390075Sobrien	.globl	__SDATA_END__
7490075Sobrien	.type	__SDATA_END__,@object
7590075Sobrien__SDATA_END__:
7690075Sobrien
7790075Sobrien	.section ".sbss","aw",@nobits
7890075Sobrien	.globl	__SBSS_END__
7990075Sobrien	.type	__SBSS_END__,@object
8090075Sobrien__SBSS_END__:
8190075Sobrien
8290075Sobrien	.section ".sdata2","a"
8390075Sobrien	.globl	__SDATA2_END__
8490075Sobrien	.type	__SDATA2_END__,@object
8590075Sobrien__SDATA2_END__:
8690075Sobrien
8790075Sobrien	.section ".sbss2","a"
8890075Sobrien	.globl	__SBSS2_END__
8990075Sobrien	.type	__SBSS2_END__,@object
9090075Sobrien__SBSS2_END__:
9190075Sobrien
9290075Sobrien	.section ".gcc_except_table","aw"
9390075Sobrien	.globl	__EXCEPT_END__
9490075Sobrien	.type	__EXCEPT_END__,@object
9590075Sobrien__EXCEPT_END__:
9690075Sobrien
9790075Sobrien	.section ".eh_frame","aw"
9890075Sobrien	.globl	__EH_FRAME_END__
9990075Sobrien	.type	__EH_FRAME_END__,@object
10090075Sobrien__EH_FRAME_END__:
10190075Sobrien        .long   0
10290075Sobrien
10390075Sobrien/* Tail of __init function used for static constructors.  */
10490075Sobrien	.section ".init","ax"
10590075Sobrien	lwz 0,20(1)
10690075Sobrien	mtlr 0
10790075Sobrien	addi 1,1,16
10890075Sobrien	blr
10990075Sobrien
11090075Sobrien/* Tail of __fini function used for static destructors.  */
11190075Sobrien	.section ".fini","ax"
11290075Sobrien	lwz 0,20(1)
11390075Sobrien	mtlr 0
11490075Sobrien	addi 1,1,16
11590075Sobrien	blr
116