os/kernelhwsrv/kernel/eka/compsupp/rvct3_1/drtaeabi.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/compsupp/rvct3_1/drtaeabi.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "ARM EABI LICENCE.txt"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// in kernel/eka/compsupp.
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// This file is part of drtaeabi.dll.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +
    1.22 +#include <e32std.h>
    1.23 +#include <e32std_private.h>
    1.24 +#include <e32panic.h>
    1.25 +
    1.26 +extern "C" {
    1.27 +
    1.28 +// Import these functions from drtrvct.dll.
    1.29 +IMPORT_C int __rt_raise(int signal, int type);
    1.30 +IMPORT_C int __rt_exit(int aReturnCode);
    1.31 +
    1.32 +int raise(int signal)
    1.33 +    { 
    1.34 +    return __rt_raise(signal, 0); 
    1.35 +    }
    1.36 +
    1.37 +EXPORT_C void abort(int signal)
    1.38 +    { 
    1.39 +    __rt_raise(signal, 1); 
    1.40 +    __rt_exit(1);
    1.41 +    }
    1.42 +
    1.43 +EXPORT_C void __cxa_pure_virtual()
    1.44 +    {
    1.45 +    User::Panic( _L("Pure virtual"), EPureVirtualCalled );
    1.46 +    }
    1.47 +
    1.48 +} // extern "C"
    1.49 +
    1.50 +
    1.51 +//
    1.52 +// Create the type_info object for void.
    1.53 +//
    1.54 +
    1.55 +extern char * _ZTVN10__cxxabiv123__fundamental_type_infoE;
    1.56 +extern const char * const  $Sub$$_ZTSv = "v";
    1.57 +
    1.58 +__asm void __rt_exporter_dummy()
    1.59 +{
    1.60 +    EXTERN _ZTVN10__cxxabiv123__fundamental_type_infoE
    1.61 +    EXTERN _ZTSv
    1.62 +    EXPORT |$Sub$$_ZTIv|
    1.63 +
    1.64 +|$Sub$$_ZTIv|
    1.65 +
    1.66 +    DCD _ZTVN10__cxxabiv123__fundamental_type_infoE
    1.67 +    DCD _ZTSv
    1.68 +}
    1.69 +