am 3e16f84f: Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.

Merge commit '3e16f84fcad103c97a2df4a58948835277043569'

* commit '3e16f84fcad103c97a2df4a58948835277043569':
  Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.
This commit is contained in:
David 'Digit' Turner 2009-05-14 15:39:55 -07:00 committed by The Android Open Source Project
commit 3ccce08bf8

View File

@ -28,6 +28,8 @@
#include <stddef.h>
#include <string.h>
extern int __cxa_atexit(void (*)(void*), void*, void* );
void* __dso_handle = 0;
/* Make this a weak symbol to avoid a multiple definition error when linking
@ -35,8 +37,7 @@ void* __dso_handle = 0;
int __attribute__((weak))
__aeabi_atexit (void *object, void (*destructor) (void *), void *dso_handle)
{
//return __cxa_atexit(destructor, object, dso_handle);
return 0;
return __cxa_atexit(destructor, object, dso_handle);
}