xref: /freebsd/lib/csu/amd64/crt1_c.c (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
199282790SJohn Baldwin /* LINTLIBRARY */
299282790SJohn Baldwin /*-
3*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
499282790SJohn Baldwin  *
599282790SJohn Baldwin  * Copyright 1996-1998 John D. Polstra.
699282790SJohn Baldwin  * All rights reserved.
799282790SJohn Baldwin  *
899282790SJohn Baldwin  * Redistribution and use in source and binary forms, with or without
999282790SJohn Baldwin  * modification, are permitted provided that the following conditions
1099282790SJohn Baldwin  * are met:
1199282790SJohn Baldwin  * 1. Redistributions of source code must retain the above copyright
1299282790SJohn Baldwin  *    notice, this list of conditions and the following disclaimer.
1399282790SJohn Baldwin  * 2. Redistributions in binary form must reproduce the above copyright
1499282790SJohn Baldwin  *    notice, this list of conditions and the following disclaimer in the
1599282790SJohn Baldwin  *    documentation and/or other materials provided with the distribution.
1699282790SJohn Baldwin  *
1799282790SJohn Baldwin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1899282790SJohn Baldwin  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1999282790SJohn Baldwin  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2099282790SJohn Baldwin  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2199282790SJohn Baldwin  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2299282790SJohn Baldwin  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2399282790SJohn Baldwin  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2499282790SJohn Baldwin  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2599282790SJohn Baldwin  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2699282790SJohn Baldwin  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2799282790SJohn Baldwin  */
2899282790SJohn Baldwin 
2999282790SJohn Baldwin #include <sys/cdefs.h>
3051015e6dSKonstantin Belousov #include "csu_common.h"
31