proposed fix for 340 [GCCE] improper use of __asm Compiler_Compatibility
authorarunabha
Thu, 25 Feb 2010 13:16:02 +0000
branchCompiler_Compatibility
changeset 67 0b53155cb38a
parent 66 2cf30fbd310c
child 68 367a75030909
proposed fix for 340 [GCCE] improper use of __asm and 341 Enabling support for gcce in cia files
kernel/eka/nkern/arm/nk_entry.cia
--- a/kernel/eka/nkern/arm/nk_entry.cia	Thu Feb 25 13:11:42 2010 +0000
+++ b/kernel/eka/nkern/arm/nk_entry.cia	Thu Feb 25 13:16:02 2010 +0000
@@ -80,7 +80,7 @@
 	asm("__CtorList: ");
 	asm(".word __CTOR_LIST__ ");
 	}
-#elif defined(__ARMCC__)
+#elif defined(__EABI__)
 void __DLL_Export_Table__(void);
 void __cpp_initialize__aeabi_();
   
@@ -89,7 +89,7 @@
 void __record_needed_destruction (void * d){}
 // 2.1 calls __aeabi_atexit passing __dso_handle. This can be a dummy (i.e. just a label)
 
-__asm void __dso_handle(void) {}
+__NAKED__  void __dso_handle(void) {}
 void __aeabi_atexit(void *object, void (*dtor)(void *), void *handle){}
 
 void _E32Startup_Body(TLinAddr aRomHeader, TLinAddr aSuperPage);