Initial revision
[official-gcc.git] / gcc / config / rs6000 / sol-cn.asm
blob2bc992e1391954628c8caaf815d9e9bebf6f2954
1 # crtn.s for solaris
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.
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.)
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.
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.
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.
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 "scrtn.s"
40 .ident "GNU C scrtn.s"
42 # Default versions of exception handling register/deregister
43 .weak _ex_register
44 .weak _ex_deregister
45 .set _ex_register,0
46 .set _ex_deregister,0
48 # End list of C++ constructors
49 .section ".ctors","aw"
50 .globl __CTOR_END__
51 .type __CTOR_END__,@object
52 __CTOR_END__:
54 # End list of C++ destructors
55 .section ".dtors","aw"
56 .globl __DTOR_END__
57 .type __DTOR_END__,@object
58 __DTOR_END__:
60 .section ".text"
61 .globl _ex_text1
62 _ex_text1:
64 .section ".exception_ranges","aw"
65 .globl _ex_range1
66 _ex_range1:
68 # Tail of __init used for static constructors in Solaris
69 .section ".init","ax"
70 lwz %r0,16(%r1)
71 lwz %r31,12(%r1)
72 mtlr %r0
73 addi %r1,%r1,16
74 blr
76 # Tail of __fini used for static destructors in Solaris
77 .section ".fini","ax"
78 lwz %r0,16(%r1)
79 lwz %r31,12(%r1)
80 mtlr %r0
81 addi %r1,%r1,16
82 blr