1*6cf6fe02Smatt /* $NetBSD: crtbegin.h,v 1.1 2014/09/19 17:36:25 matt Exp $ */ 2*6cf6fe02Smatt 3*6cf6fe02Smatt /*- 4*6cf6fe02Smatt * Copyright (c) 2014 The NetBSD Foundation, Inc. 5*6cf6fe02Smatt * All rights reserved. 6*6cf6fe02Smatt * 7*6cf6fe02Smatt * This code is derived from software contributed to The NetBSD Foundation 8*6cf6fe02Smatt * by Matt Thomas of 3am Software Foundry. 9*6cf6fe02Smatt * 10*6cf6fe02Smatt * Redistribution and use in source and binary forms, with or without 11*6cf6fe02Smatt * modification, are permitted provided that the following conditions 12*6cf6fe02Smatt * are met: 13*6cf6fe02Smatt * 1. Redistributions of source code must retain the above copyright 14*6cf6fe02Smatt * notice, this list of conditions and the following disclaimer. 15*6cf6fe02Smatt * 2. Redistributions in binary form must reproduce the above copyright 16*6cf6fe02Smatt * notice, this list of conditions and the following disclaimer in the 17*6cf6fe02Smatt * documentation and/or other materials provided with the distribution. 18*6cf6fe02Smatt * 19*6cf6fe02Smatt * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*6cf6fe02Smatt * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*6cf6fe02Smatt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*6cf6fe02Smatt * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*6cf6fe02Smatt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*6cf6fe02Smatt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*6cf6fe02Smatt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*6cf6fe02Smatt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*6cf6fe02Smatt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*6cf6fe02Smatt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*6cf6fe02Smatt * POSSIBILITY OF SUCH DAMAGE. 30*6cf6fe02Smatt */ 31*6cf6fe02Smatt 32*6cf6fe02Smatt static void __do_global_ctors_aux(void) __attribute__((__constructor__)) __used; 33*6cf6fe02Smatt #ifdef SHARED 34*6cf6fe02Smatt static void __do_global_dtors_aux(void) __attribute__((__destructor__)) __used; 35*6cf6fe02Smatt #endif 36