First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "ARM EABI LICENCE.txt"
5 // which accompanies this distribution, and is available
6 // in kernel/eka/compsupp.
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file is part of usrt.lib and ksrt.lib.
21 // This calls each of the compiler constructed functions referenced from pi_ctorvec.
22 // These functions arrange to 'call' the appropriate constructor for the 'static' instance
23 // (in fact the call may be inlined). If the class of the instance has a destructor then
24 // compiler records that this object needs 'destructing' at 'exit' time. It does this by
25 // calling the function __cxa_atexit. We provide our own definition of this.
29 __asm void __cpp_initialize__aeabi_()
33 IMPORT |SHT$$INIT_ARRAY$$Base| [WEAK]
34 IMPORT |SHT$$INIT_ARRAY$$Limit| [WEAK]
36 // Export std::nothrow from here.
39 STMFD r13!,{r3-r5,r14}
45 // Exit if the array is empty.
46 LDMEQFD r13!,{r3-r5,pc}
65 DCD |SHT$$INIT_ARRAY$$Base|
67 DCD |SHT$$INIT_ARRAY$$Limit|
69 // cheat - defining this here saves a whole 4 bytes!!! - value is never used