sol2-ci.asm revision 169689
167754Smsmith! crti.s for solaris 2.0.
267754Smsmith
367754Smsmith!   Copyright (C) 1992 Free Software Foundation, Inc.
467754Smsmith!   Written By David Vinayak Henkel-Wallace, June 1992
567754Smsmith! 
667754Smsmith! This file is free software; you can redistribute it and/or modify it
7217365Sjkim! under the terms of the GNU General Public License as published by the
8245582Sjkim! Free Software Foundation; either version 2, or (at your option) any
970243Smsmith! later version.
1067754Smsmith! 
11217365Sjkim! In addition to the permissions in the GNU General Public License, the
12217365Sjkim! Free Software Foundation gives you unlimited permission to link the
13217365Sjkim! compiled version of this file with other programs, and to distribute
14217365Sjkim! those programs without any restriction coming from the use of this
15217365Sjkim! file.  (The General Public License restrictions do apply in other
16217365Sjkim! respects; for example, they cover modification of the file, and
17217365Sjkim! distribution when not linked into another program.)
18217365Sjkim! 
19217365Sjkim! This file is distributed in the hope that it will be useful, but
20217365Sjkim! WITHOUT ANY WARRANTY; without even the implied warranty of
21217365Sjkim! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22217365Sjkim! General Public License for more details.
23217365Sjkim! 
24217365Sjkim! You should have received a copy of the GNU General Public License
2567754Smsmith! along with this program; see the file COPYING.  If not, write to
26217365Sjkim! the Free Software Foundation, 51 Franklin Street, Fifth Floor,
27217365Sjkim! Boston, MA 02110-1301, USA.
28217365Sjkim! 
2967754Smsmith!    As a special exception, if you link this library with files
30217365Sjkim!    compiled with GCC to produce an executable, this does not cause
31217365Sjkim!    the resulting executable to be covered by the GNU General Public License.
32217365Sjkim!    This exception does not however invalidate any other reasons why
33217365Sjkim!    the executable file might be covered by the GNU General Public License.
34217365Sjkim! 
35217365Sjkim
36217365Sjkim! This file just make a stack frame for the contents of the .fini and
37217365Sjkim! .init sections.  Users may put any desired instructions in those
38217365Sjkim! sections.
39217365Sjkim
40217365Sjkim! This file is linked in before the Values-Xx.o files and also before
41217365Sjkim! crtbegin, with which perhaps it should be merged.
42217365Sjkim 
4367754Smsmith	.file		"crti.s"
4467754Smsmith
4567754Smsmith	.section	".init"
4667754Smsmith	.proc	022
4780062Smsmith	.global	_init
4867754Smsmith	.type	_init,#function
49193267Sjkim	.align	4
50167802Sjkim_init:
51167802Sjkim#ifdef __sparcv9
52123315Snjl	save	%sp, -176, %sp
53243347Sjkim#else
54243347Sjkim	save	%sp, -96, %sp
55243347Sjkim#endif
56243347Sjkim
57243347Sjkim
58243347Sjkim	.section	".fini"
59243347Sjkim	.proc	022
60243347Sjkim	.global	_fini
61243347Sjkim	.type	_fini,#function
62243347Sjkim	.align	4
63243347Sjkim_fini:
64243347Sjkim#ifdef __sparcv9
6567754Smsmith	save	%sp, -176, %sp
66167802Sjkim#else
67193267Sjkim	save	%sp, -96, %sp
68167802Sjkim#endif
6967754Smsmith