xref: /onnv-gate/usr/src/lib/common/sparcv9/crti.s (revision 7298:b69e27387f74)
10Sstevel@tonic-gate/*
20Sstevel@tonic-gate * CDDL HEADER START
30Sstevel@tonic-gate *
40Sstevel@tonic-gate * The contents of this file are subject to the terms of the
5*7298SMark.J.Nelson@Sun.COM * Common Development and Distribution License (the "License").
6*7298SMark.J.Nelson@Sun.COM * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate *
80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate * See the License for the specific language governing permissions
110Sstevel@tonic-gate * and limitations under the License.
120Sstevel@tonic-gate *
130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate *
190Sstevel@tonic-gate * CDDL HEADER END
200Sstevel@tonic-gate */
210Sstevel@tonic-gate/*
220Sstevel@tonic-gate * Copyright (c) 2001 by Sun Microsystems, Inc.
230Sstevel@tonic-gate * All rights reserved.
240Sstevel@tonic-gate */
250Sstevel@tonic-gate
260Sstevel@tonic-gate
270Sstevel@tonic-gate/*
280Sstevel@tonic-gate * These crt*.o modules are provided as the bare minimum required
290Sstevel@tonic-gate * from a crt*.o for inclusion in building low level system
300Sstevel@tonic-gate * libraries.  The are only be to included in libraries which
310Sstevel@tonic-gate * contain *no* C++ code and want to avoid the startup code
320Sstevel@tonic-gate * that the C++ runtime has introduced into the crt*.o modules.
330Sstevel@tonic-gate *
340Sstevel@tonic-gate * For further details - see bug#4433015
350Sstevel@tonic-gate */
360Sstevel@tonic-gate
37*7298SMark.J.Nelson@Sun.COM	.file		"crti.s"
380Sstevel@tonic-gate
390Sstevel@tonic-gate#include <sys/asm_linkage.h>
400Sstevel@tonic-gate
410Sstevel@tonic-gate/*
420Sstevel@tonic-gate * _init function prologue
430Sstevel@tonic-gate */
440Sstevel@tonic-gate	.section	".init"
450Sstevel@tonic-gate	.global		_init
460Sstevel@tonic-gate	.type		_init, #function
470Sstevel@tonic-gate	.align	4
480Sstevel@tonic-gate_init:
490Sstevel@tonic-gate	save	%sp, -SA(MINFRAME), %sp
500Sstevel@tonic-gate
510Sstevel@tonic-gate/*
520Sstevel@tonic-gate * _fini function prologue
530Sstevel@tonic-gate */
540Sstevel@tonic-gate	.section	".fini"
550Sstevel@tonic-gate	.global		_fini
560Sstevel@tonic-gate	.type		_fini, #function
570Sstevel@tonic-gate	.align	4
580Sstevel@tonic-gate_fini:
590Sstevel@tonic-gate	save	%sp, -SA(MINFRAME), %sp
60