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