sl@0
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// e32\euser\epoc\arm\uc_dll.cia
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#include <e32cia.h>
|
sl@0
|
19 |
#include <u32std.h>
|
sl@0
|
20 |
|
sl@0
|
21 |
extern "C" {
|
sl@0
|
22 |
|
sl@0
|
23 |
extern TInt _E32Dll_Body(TInt);
|
sl@0
|
24 |
|
sl@0
|
25 |
__NAKED__ TInt _E32Dll(TInt /*aReason*/)
|
sl@0
|
26 |
{
|
sl@0
|
27 |
// DLL entry point
|
sl@0
|
28 |
EKA2_ENTRY_POINT_VERSION_IDENTIFIER; // DUMMY INSTRUCTION TO INDICATE EKA2 ENTRY POINT
|
sl@0
|
29 |
asm("ldr r12, 1f ");
|
sl@0
|
30 |
__JUMP(,r12);
|
sl@0
|
31 |
|
sl@0
|
32 |
asm(".word 0 "); // loader will replace with code seg unique ID
|
sl@0
|
33 |
// for RAM-loaded code segment
|
sl@0
|
34 |
// MUST BE AT OFFSET 12 FROM ENTRY POINT
|
sl@0
|
35 |
|
sl@0
|
36 |
asm("1: ");
|
sl@0
|
37 |
asm(".word _E32Dll_Body ");
|
sl@0
|
38 |
|
sl@0
|
39 |
#ifdef __ARMCC__
|
sl@0
|
40 |
#ifdef __SUPPORT_CPP_EXCEPTIONS__
|
sl@0
|
41 |
|
sl@0
|
42 |
|
sl@0
|
43 |
/* It is possible no functions included in the image require
|
sl@0
|
44 |
* a handler table. Therefore make only a weak reference to
|
sl@0
|
45 |
* the handler table base symbol, which may be absent.
|
sl@0
|
46 |
*/
|
sl@0
|
47 |
extern |.ARM.exidx$$Base|;
|
sl@0
|
48 |
extern |.ARM.exidx$$Limit|;
|
sl@0
|
49 |
extern |.ARM.extab$$Base| [WEAK];
|
sl@0
|
50 |
extern |Image$$ER_RO$$Base|;
|
sl@0
|
51 |
extern |Image$$ER_RO$$Limit|;
|
sl@0
|
52 |
export |Symbian$$CPP$$Exception$$Descriptor|;
|
sl@0
|
53 |
|
sl@0
|
54 |
/* Symbian$$CPP$$Exception$$Descriptor is referenced from the Image header.
|
sl@0
|
55 |
* A pointer to this object can be cached by the unwinder in the UCB
|
sl@0
|
56 |
* on the assumption that the EHT for the previous frame is likely to be right
|
sl@0
|
57 |
* for the current frame
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
|
sl@0
|
60 |
|Symbian$$CPP$$Exception$$Descriptor|
|
sl@0
|
61 |
#ifdef __LEAVE_EQUALS_THROW__
|
sl@0
|
62 |
|Symbian$$eit_base| dcd |.ARM.exidx$$Base|; /* index table base */
|
sl@0
|
63 |
|Symbian$$eit_limit| dcd |.ARM.exidx$$Limit| ; /* index table limit */
|
sl@0
|
64 |
#endif
|
sl@0
|
65 |
#if __ARMCC_VERSION > 220000
|
sl@0
|
66 |
|Symbian$$code_seg_base| dcd |Image$$ER_RO$$Base| + 1 ; /* RO segment base + mark as ehabi v2 */
|
sl@0
|
67 |
|Symbian$$code_seg_limit| dcd |Image$$ER_RO$$Limit| ;/* RO segment limit */
|
sl@0
|
68 |
|Symbian$$reserved| dcd 0 ; /* reserved for future use */
|
sl@0
|
69 |
#else
|
sl@0
|
70 |
|Symbian$$code_seg_base| dcd |Image$$ER_RO$$Base| ; /* RO segment base */
|
sl@0
|
71 |
|Symbian$$code_seg_limit| dcd |Image$$ER_RO$$Limit| ;/* RO segment limit */
|
sl@0
|
72 |
#endif
|
sl@0
|
73 |
|
sl@0
|
74 |
#endif
|
sl@0
|
75 |
#endif
|
sl@0
|
76 |
}
|
sl@0
|
77 |
}
|
sl@0
|
78 |
|