diff options
author | David 'Digit' Turner <digit@google.com> | 2009-05-14 14:25:26 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-05-14 14:25:26 +0200 |
commit | 3e16f84fcad103c97a2df4a58948835277043569 (patch) | |
tree | e959184f911b2d3cf6aa2b0d183179ea13996188 /libc | |
parent | d1b40d8c69dfca94185ea9231f6cb16f70c02e39 (diff) | |
download | bionic-3e16f84fcad103c97a2df4a58948835277043569.zip bionic-3e16f84fcad103c97a2df4a58948835277043569.tar.gz bionic-3e16f84fcad103c97a2df4a58948835277043569.tar.bz2 |
Fix __aeabi_atexit to call __cxa_atexit properly. This function is defined by the C++ ABI for ARM document.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/bionic/eabi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/bionic/eabi.c b/libc/bionic/eabi.c index f212d05..21d8537 100644 --- a/libc/bionic/eabi.c +++ b/libc/bionic/eabi.c @@ -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); } |