author | mikek |
Fri, 02 Jul 2010 11:29:58 +0100 | |
branch | GCC_SURGE |
changeset 191 | 00cd07a1b0af |
parent 188 | 38a7352e23d3 |
child 203 | 71dce6d9df02 |
permissions | -rw-r--r-- |
188
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
1 |
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
2 |
// All rights reserved. |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
4 |
// under the terms of the License "Eclipse Public License v1.0" |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
7 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
8 |
// Initial Contributors: |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
9 |
// Mike Kinghan, mikek@symbian.org, for Symbian Foundation |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
10 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
11 |
// Contributors: |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
12 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
13 |
// Description: |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
14 |
// kernelhwsrv/kernel/eka/common/arm/gccehlp.cpp |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
15 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
16 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
17 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
18 |
#include "../common.h" |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
19 |
#include <nkern.h> |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
20 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
21 |
extern "C" { |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
22 |
EXPORT_C int __aeabi_idiv0 (int return_value) |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
23 |
{ |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
24 |
FAULT(); |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
25 |
return return_value; |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
26 |
} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
27 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
28 |
EXPORT_C long long __aeabi_ldiv0 (long long return_value) |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
29 |
{ |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
30 |
FAULT(); |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
31 |
return return_value; |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
32 |
} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
33 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
34 |
EXPORT_C int __cxa_pure_virtual() |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
35 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
36 |
// Gets called for any unreplaced pure virtual methods. |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
37 |
// |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
38 |
{ |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
39 |
#ifdef __STANDALONE_NANOKERNEL__ |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
40 |
__NK_ASSERT_ALWAYS(0); |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
41 |
#else |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
42 |
Panic(EPureVirtualCalled); |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
43 |
#endif |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
44 |
return 0; |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
45 |
} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
46 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
47 |
#ifdef __KERNEL_MODE__ |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
48 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
49 |
void __cxa_end_catch(){} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
50 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
51 |
void __cxa_begin_catch(){} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
52 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
53 |
void __cxa_rethrow(){} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
54 |
// std::terminate |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
55 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
56 |
void __cxa_call_unexpected() {} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
57 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
58 |
void __aeabi_unwind_cpp_pr0() {} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
59 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
60 |
void __cxa_end_cleanup() {} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
61 |
|
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
62 |
#endif |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
63 |
} |
38a7352e23d3
1) Fix for Bug 3117 - [GCCE] Missing symbols in linkage of template_ekern.exe
mikek
parents:
diff
changeset
|
64 |