aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/arm/aeabi_atexit.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/arm/aeabi_atexit.c')
-rw-r--r--newlib/libc/sys/arm/aeabi_atexit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/sys/arm/aeabi_atexit.c b/newlib/libc/sys/arm/aeabi_atexit.c
new file mode 100644
index 0000000..4b600e2
--- /dev/null
+++ b/newlib/libc/sys/arm/aeabi_atexit.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+/* Register a function to be called by exit or when a shared library
+ is unloaded. This routine is like __cxa_atexit, but uses the
+ calling sequence required by the ARM EABI. */
+int
+__aeabi_atexit (void *arg, void (*func) (void *), void *d)
+{
+ return __cxa_atexit (func, arg, d);
+}