summaryrefslogtreecommitdiffstats
path: root/libc/bionic/eabi.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/eabi.c')
-rw-r--r--libc/bionic/eabi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/bionic/eabi.c b/libc/bionic/eabi.c
index c491f05..f212d05 100644
--- a/libc/bionic/eabi.c
+++ b/libc/bionic/eabi.c
@@ -30,7 +30,10 @@
void* __dso_handle = 0;
-int __aeabi_atexit (void *object, void (*destructor) (void *), void *dso_handle)
+/* Make this a weak symbol to avoid a multiple definition error when linking
+ * with libstdc++-v3. */
+int __attribute__((weak))
+__aeabi_atexit (void *object, void (*destructor) (void *), void *dso_handle)
{
//return __cxa_atexit(destructor, object, dso_handle);
return 0;