xref: /titanic_50/usr/src/lib/crt/i386/crtn.s (revision cc31cba96d9862a1075a8ec47d6149e04c7ad62d)
1*cc31cba9SRichard Lowe/*
2*cc31cba9SRichard Lowe * CDDL HEADER START
3*cc31cba9SRichard Lowe *
4*cc31cba9SRichard Lowe * The contents of this file are subject to the terms of the
5*cc31cba9SRichard Lowe * Common Development and Distribution License, Version 1.0 only
6*cc31cba9SRichard Lowe * (the "License").  You may not use this file except in compliance
7*cc31cba9SRichard Lowe * with the License.
8*cc31cba9SRichard Lowe *
9*cc31cba9SRichard Lowe * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*cc31cba9SRichard Lowe * or http://www.opensolaris.org/os/licensing.
11*cc31cba9SRichard Lowe * See the License for the specific language governing permissions
12*cc31cba9SRichard Lowe * and limitations under the License.
13*cc31cba9SRichard Lowe *
14*cc31cba9SRichard Lowe * When distributing Covered Code, include this CDDL HEADER in each
15*cc31cba9SRichard Lowe * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*cc31cba9SRichard Lowe * If applicable, add the following below this CDDL HEADER, with the
17*cc31cba9SRichard Lowe * fields enclosed by brackets "[]" replaced with your own identifying
18*cc31cba9SRichard Lowe * information: Portions Copyright [yyyy] [name of copyright owner]
19*cc31cba9SRichard Lowe *
20*cc31cba9SRichard Lowe * CDDL HEADER END
21*cc31cba9SRichard Lowe */
22*cc31cba9SRichard Lowe/*
23*cc31cba9SRichard Lowe * Copyright (c) 2001 by Sun Microsystems, Inc.
24*cc31cba9SRichard Lowe * All rights reserved.
25*cc31cba9SRichard Lowe */
26*cc31cba9SRichard Lowe
27*cc31cba9SRichard Lowe/*
28*cc31cba9SRichard Lowe * These crt*.o modules are provided as the bare minimum required
29*cc31cba9SRichard Lowe * from a crt*.o for inclusion in building low level system
30*cc31cba9SRichard Lowe * libraries.  The are only be to included in libraries which
31*cc31cba9SRichard Lowe * contain *no* C++ code and want to avoid the startup code
32*cc31cba9SRichard Lowe * that the C++ runtime has introduced into the crt*.o modules.
33*cc31cba9SRichard Lowe *
34*cc31cba9SRichard Lowe * For further details - see bug#4433015
35*cc31cba9SRichard Lowe */
36*cc31cba9SRichard Lowe	.file	"crtn.s"
37*cc31cba9SRichard Lowe
38*cc31cba9SRichard Lowe/*
39*cc31cba9SRichard Lowe * _init function epilogue
40*cc31cba9SRichard Lowe */
41*cc31cba9SRichard Lowe	.section	.init,"ax"
42*cc31cba9SRichard Lowe
43*cc31cba9SRichard Lowe	popl	%ebx
44*cc31cba9SRichard Lowe	leave
45*cc31cba9SRichard Lowe	ret
46*cc31cba9SRichard Lowe
47*cc31cba9SRichard Lowe/*
48*cc31cba9SRichard Lowe * _fini function epilogue
49*cc31cba9SRichard Lowe */
50*cc31cba9SRichard Lowe	.section	.fini,"ax"
51*cc31cba9SRichard Lowe
52*cc31cba9SRichard Lowe	popl	%ebx
53*cc31cba9SRichard Lowe	leave
54*cc31cba9SRichard Lowe	ret
55