xref: /freebsd/lib/csu/i386/crti.S (revision 302af79506e7c238ed59fe8bc2270b11501ffb3d)
1*302af795SEd Maste/*-
2*302af795SEd Maste * Copyright 1996, 1997, 1998, 2000 John D. Polstra.
3*302af795SEd Maste * All rights reserved.
4*302af795SEd Maste *
5*302af795SEd Maste * Redistribution and use in source and binary forms, with or without
6*302af795SEd Maste * modification, are permitted provided that the following conditions
7*302af795SEd Maste * are met:
8*302af795SEd Maste * 1. Redistributions of source code must retain the above copyright
9*302af795SEd Maste *    notice, this list of conditions and the following disclaimer.
10*302af795SEd Maste * 2. Redistributions in binary form must reproduce the above copyright
11*302af795SEd Maste *    notice, this list of conditions and the following disclaimer in the
12*302af795SEd Maste *    documentation and/or other materials provided with the distribution.
13*302af795SEd Maste *
14*302af795SEd Maste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15*302af795SEd Maste * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16*302af795SEd Maste * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17*302af795SEd Maste * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18*302af795SEd Maste * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19*302af795SEd Maste * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20*302af795SEd Maste * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21*302af795SEd Maste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22*302af795SEd Maste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23*302af795SEd Maste * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24*302af795SEd Maste */
25*302af795SEd Maste
26*302af795SEd Maste#include <machine/asm.h>
27*302af795SEd Maste__FBSDID("$FreeBSD$");
28*302af795SEd Maste
29*302af795SEd Maste	.section .init,"ax",@progbits
30*302af795SEd Maste	.align	4
31*302af795SEd Maste	.globl	_init
32*302af795SEd Maste	.type	_init,@function
33*302af795SEd Maste_init:
34*302af795SEd Maste	sub	$12,%esp	/* re-align stack pointer */
35*302af795SEd Maste
36*302af795SEd Maste	.section .fini,"ax",@progbits
37*302af795SEd Maste	.align	4
38*302af795SEd Maste	.globl	_fini
39*302af795SEd Maste	.type	_fini,@function
40*302af795SEd Maste_fini:
41*302af795SEd Maste	sub	$12,%esp	/* re-align stack pointer */
42*302af795SEd Maste
43*302af795SEd Maste	.section .note.GNU-stack,"",%progbits
44