1 /* Copyright (c) 2012-2015 Red Hat Incorporated.
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions
8 Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
11 Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
15 The name of Red Hat Incorporated may not be used to endorse
16 or promote products derived from this software without specific
17 prior written permission.
19 This software is provided by the copyright holders and contributors
20 "AS IS" and any express or implied warranties, including, but not
21 limited to, the implied warranties of merchantability and fitness for
22 a particular purpose are disclaimed. In no event shall Red Hat
23 incorporated be liable for any direct, indirect, incidental, special,
24 exemplary, or consequential damages (including, but not limited to,
25 procurement of substitute goods or services; loss of use, data, or
26 profits; or business interruption) however caused and on any theory of
27 liability, whether in contract, strict liability, or tort (including
28 negligence or otherwise) arising in any way out of the use of this
29 software, even if advised of the possibility of such damage. */
33 ;; This function is responsible for setting up the arguments
34 ;; required for __crt0_run_array, to run the functions in .preinit_array.
36 START_CRT_FUNC 0500 run_preinit_array
38 mov_ #__preinit_array_start, R4
39 mov_ #__preinit_array_end, R5
41 call_ #__crt0_run_array
43 END_CRT_FUNC run_preinit_array